main
Last change
on this file 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
|
Rev | Line | |
---|
[d565449] | 1 | 'use strict';
|
---|
| 2 |
|
---|
| 3 | var GetIntrinsic = require('get-intrinsic');
|
---|
| 4 |
|
---|
| 5 | var $Array = GetIntrinsic('%Array%');
|
---|
| 6 |
|
---|
| 7 | // eslint-disable-next-line global-require
|
---|
| 8 | var toStr = !$Array.isArray && require('call-bind/callBound')('Object.prototype.toString');
|
---|
| 9 |
|
---|
| 10 | module.exports = $Array.isArray || function IsArray(argument) {
|
---|
| 11 | return toStr(argument) === '[object Array]';
|
---|
| 12 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.