News for hackers. Stuff that matters.
Re:Bundle Phobia: find the cost of adding an npm package to ... by woogley on Monday December 18, 2017 @01:17PM (#15953819)
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

Although for this particular strawman I think `foo.constructor === Array` is probably enough.

Re:Bundle Phobia: find the cost of adding an npm package to ... by alaaibrahim on Monday December 18, 2017 @08:05PM (#15956963)
What if foo is `null` or `undefined` ?