3 ms·
I'm very aware of bcoin. https://npm.anvaka.com/#/view/2d/bcoin https://npm.anvaka.com/#/view/2d/bcoin Many steps of indirection away we find things like this
by RL_Quine 7y ago
I'm very aware of bcoin.
https://npm.anvaka.com/#/view/2d/bcoin https://npm.anvaka.com/#/view/2d/bcoin
Many steps of indirection away we find things like this include.
https://github.com/juliangruber/isarray/blob/master/index.js https://github.com/juliangruber/isarray/blob/master/index.js
module.exports = Array.isArray || function (arr) {
return toString.call(arr) == '[object Array]';
};
Javascript is an absolute joke of a language.
- judge2020 7y agoDon't forget https://github.com/sindresorhus/number-is-nan/blob/master/index.js https://github.com/sindresorhus/number-is-nan/blob/master/in...
- chirss 7y agoFor real, it can't even work with regular expressions decently.
- Ajedi32 7y agoI don't really see the problem. On any remotely modern version of Node that's just a noop. On ancient versions of Node its a very useful polyfill.