3 ms·
Depends on the team. I would not approve anything other than using a runtime library or importing 'core-js/fn/array/is-array' from the wonderfully modular core-
by woogley 9y ago
Depends on the team. I would not approve anything other than using a runtime library or importing 'core-js/fn/array/is-array' from the wonderfully modular core-js: https://github.com/zloirock/core-js https://github.com/zloirock/core-js
Although for this particular strawman I think `foo.constructor === Array` is probably enough.
- deleted 9y ago[deleted]
- alaaibrahim 9y agoWhat if foo is `null` or `undefined` ?