This commit is contained in:
parent
7a9bf3199a
commit
c294e2e9ae
5702 changed files with 465039 additions and 34 deletions
10
node_modules/is-arrayish/index.js
generated
vendored
Normal file
10
node_modules/is-arrayish/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
'use strict';
|
||||
|
||||
module.exports = function isArrayish(obj) {
|
||||
if (!obj) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return obj instanceof Array || Array.isArray(obj) ||
|
||||
(obj.length >= 0 && obj.splice instanceof Function);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue