Drip #58 - Detecting Array vs Object

25 views
Skip to first unread message

Liad Yosef

unread,
Apr 4, 2014, 8:03:39 AM4/4/14
to js-drip-d...@googlegroups.com
It's worth noting that the "instanceof" doesn't work in a multi-frame environment.
Since every frame has its own Array prototype, checking "instanceof" (and constructor) on an array from another frame will always return false.

Joshua Clanton

unread,
Apr 10, 2014, 11:06:25 PM4/10/14
to js-drip-d...@googlegroups.com
That's a great point. I may have to do a drip on that in the future. :-)
Reply all
Reply to author
Forward
0 new messages