Hacker GitHub

← All repos

juliangruber/isarray

View on GitHub ↗ ★ 130 JavaScript

Array#isArray for older browsers.

7 mentions on Hacker News by 7 people: 1 story, 6 comments · first 2016-03-25 · latest 2020-11-08

Mentions per year 7 mentions · busiest year 2020 (6)
20082026
  1. …thus making is as Node module was pointless, but polyfill for browsers might have some sense. - [0] https://github.com/juliangruber/isarray/commit/c8601522e3136... - [1] https://github.com/nodejs/node-v0.x-archive/blob/v0.1.15/Cha...
  2. …happened here, though who knows across X number of browsers and whatever JS engine updates happen. https://github.com/juliangruber/isarray/commit/1052c9d94dc87...
  3. …I think the implementation is very non-obvious, so I see the sense in shipping a canonical solution https://github.com/juliangruber/isarray/blob/master/index.js
  4. Reading issue #27 on the github page really gives an insight into..something: https://github.com/juliangruber/isarray/issues/27
  5. https://github.com/juliangruber/isarray/issues/27
  6. …Many steps of indirection away we find things like this include. https://github.com/juliangruber/isarray/blob/master/index.js module.exports = Array.isArray || function (arr) { return toString.call(arr) == '[object Array]';
  7. ▲ 1
    Array#isArray for older browsers – 19 stars on GitHub
    story by vmorgulis · 2016-03-25 · 1 comment