source:
frontend/node_modules/is-arrayish/index.js
| Last change on this file was 9af201e, checked in by , 11 days ago | |
|---|---|
|
|
| File size: 204 bytes | |
| Line | |
|---|---|
| 1 | 'use strict'; |
| 2 | |
| 3 | module.exports = function isArrayish(obj) { |
| 4 | if (!obj) { |
| 5 | return false; |
| 6 | } |
| 7 | |
| 8 | return obj instanceof Array || Array.isArray(obj) || |
| 9 | (obj.length >= 0 && obj.splice instanceof Function); |
| 10 | }; |
Note:
See TracBrowser
for help on using the repository browser.
