mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 07:47:49 +00:00
Bump to v3.8.0.
This commit is contained in:
15
internal/isArrayLike.js
Normal file
15
internal/isArrayLike.js
Normal file
@@ -0,0 +1,15 @@
|
||||
import getLength from './getLength';
|
||||
import isLength from './isLength';
|
||||
|
||||
/**
|
||||
* Checks if `value` is array-like.
|
||||
*
|
||||
* @private
|
||||
* @param {*} value The value to check.
|
||||
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
|
||||
*/
|
||||
function isArrayLike(value) {
|
||||
return value != null && isLength(getLength(value));
|
||||
}
|
||||
|
||||
export default isArrayLike;
|
||||
Reference in New Issue
Block a user