4 ms·
Did you read the code? It is standard functionality, but only in newer Node versions and browsers. The linked package is basically a polyfill.
by seattle_spring 6y ago
Did you read the code? It is standard functionality, but only in newer Node versions and browsers. The linked package is basically a polyfill.
- wongarsu 6y agoIt is now, but it wasn't standard functionality back when this library was first published.
- aPoCoMiLogin 6y agofirst commit is from 2013 [0], first Node that had Array.isArray was 0.1.15 from 2009 [1], thus making is as Node module was pointless, but polyfill for browsers might have some sense. - [0] https://github.com/juliangruber/isarray/commit/c8601522e31366d0ce1bfd11818c4bb3ebd032a4 https://github.com/juliangruber/isarray/commit/c8601522e3136... - [1] https://github.com/nodejs/node-v0.x-archive/blob/v0.1.15/ChangeLog https://github.com/nodejs/node-v0.x-archive/blob/v0.1.15/Cha...