Anne van Kesteren (2013-10-31T15:38:18.000Z)
This keeps coming up. Last instance:
http://mxr.mozilla.org/mozilla-central/source/dom/base/ObjectWrapper.jsm#16

We have it for Array using Array.isArray(). It is unclear why the
arguments for arrays not apply to other types of objects, such as
array buffers, nodes, blobs, files, etc.

We could introduce something like

  Object.crossGlobalInstanceOf(instance, type)

which checks @@crossGlobalBrand or some such which works for built-ins
and is also usable by jQuery and the like.


-- 
http://annevankesteren.nl/
domenic at domenicdenicola.com (2013-11-12T18:46:20.203Z)
This keeps coming up. Last instance:
http://mxr.mozilla.org/mozilla-central/source/dom/base/ObjectWrapper.jsm#16

We have it for `Array` using `Array.isArray()`. It is unclear why the
arguments for arrays not apply to other types of objects, such as
array buffers, nodes, blobs, files, etc.

We could introduce something like

```js
Object.crossGlobalInstanceOf(instance, type)
```

which checks @@crossGlobalBrand or some such which works for built-ins
and is also usable by jQuery and the like.