> Peter van der Zee <[email protected]> wrote:
>
>>On Sun, Mar 2, 2014 at 4:18 AM, Domenic Denicola
>><[email protected]> wrote:
>>> You can just do `if (Symbol.iterator in potentialIterable)`.
>>
>>Does that work cross-frame?

On Sun, Mar 2, 2014 at 5:35 PM, Allen Wirfs-Brock <[email protected]> wrote:
> Yes

Okay, was wondering whether that could work for Array detection as
well. But perhaps that problem has already been solved, I haven't kept
up with that.

`if (Array[Symbol.isArray]) ...` feels like a fairly elegant cross
frame solution.

- peter
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to