Re: Top Level Array Generics

Le 08/11/2013 19:27, David Bruant a écrit :
> Le 07/11/2013 08:31, Garrett Smith a écrit :
>> Also, Array.filter is NaN in Chrome.
> ... I don't even... Whoaaa... isNaN(Array.filter) is true in Firefox 
> as well...
Alright, for Firefox it's normal.

isNaN(Array.filter) =>
    Array.filter.[[DefaultValue]]() =>
    Array.filter.valueOf() =>
    Array.filter.toString() (source code with the [native code] thing)
isNaN(Array.filter.toString()) returns true (because the string isn't 
parsable as a number).

But something remains absurd  for Chrome where Array.filter isn't defined.

David

Received on Friday, 8 November 2013 18:36:40 UTC