debian-mirror-gitlab/core-js/internals/is-array.js
2019-09-25 13:30:05 +05:30

7 lines
226 B
JavaScript

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