main
Last change
on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
340 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
|
---|
[79a0317] | 8 | var toStr = !$Array.isArray && require('call-bound')('Object.prototype.toString');
|
---|
[d565449] | 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.