aswi2020vldc-gitlab/templetes/node_modules/es-abstract/2017/IsArray.js @ 56f6c6df
1 |
'use strict'; |
---|---|
2 |
|
3 |
var GetIntrinsic = require('../GetIntrinsic'); |
4 |
|
5 |
var $Array = GetIntrinsic('%Array%'); |
6 |
|
7 |
// eslint-disable-next-line global-require
|
8 |
var toStr = !$Array.isArray && require('../helpers/callBound')('Object.prototype.toString'); |
9 |
|
10 |
// https://www.ecma-international.org/ecma-262/6.0/#sec-isarray
|
11 |
|
12 |
module.exports = $Array.isArray || function IsArray(argument) { |
13 |
return toStr(argument) === '[object Array]'; |
14 |
};
|