source: imaps-frontend/node_modules/es-abstract/helpers/IsArray.js@ d565449

main
Last change on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 349 bytes
Line 
1'use strict';
2
3var GetIntrinsic = require('get-intrinsic');
4
5var $Array = GetIntrinsic('%Array%');
6
7// eslint-disable-next-line global-require
8var toStr = !$Array.isArray && require('call-bind/callBound')('Object.prototype.toString');
9
10module.exports = $Array.isArray || function IsArray(argument) {
11 return toStr(argument) === '[object Array]';
12};
Note: See TracBrowser for help on using the repository browser.