|
Last change
on this file since cdcff72 was 9af201e, checked in by MBK <marija.karapandzova@…>, 13 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
340 bytes
|
| Line | |
|---|
| 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-bound')('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.