is-array.js 226 B

1234567
  1. var classof = require('../internals/classof-raw');
  2. // `IsArray` abstract operation
  3. // https://tc39.github.io/ecma262/#sec-isarray
  4. module.exports = Array.isArray || function isArray(arg) {
  5. return classof(arg) == 'Array';
  6. };