update
This commit is contained in:
parent
d9becc67b6
commit
9308795b8b
964 changed files with 104265 additions and 16 deletions
15
node_modules/ramda/es/internal/_isArray.js
generated
vendored
Normal file
15
node_modules/ramda/es/internal/_isArray.js
generated
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
/**
|
||||
* Tests whether or not an object is an array.
|
||||
*
|
||||
* @private
|
||||
* @param {*} val The object to test.
|
||||
* @return {Boolean} `true` if `val` is an array, `false` otherwise.
|
||||
* @example
|
||||
*
|
||||
* _isArray([]); //=> true
|
||||
* _isArray(null); //=> false
|
||||
* _isArray({}); //=> false
|
||||
*/
|
||||
export default Array.isArray || function _isArray(val) {
|
||||
return val != null && val.length >= 0 && Object.prototype.toString.call(val) === '[object Array]';
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue