* Checks if `value` is a valid array-like length. * * **Note:** This method is loosely based on * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength). * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {b
(value)
| 22107 | * // => false |
| 22108 | */ |
| 22109 | function isLength(value) { |
| 22110 | return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; |
| 22111 | } |
| 22112 | |
| 22113 | module.exports = isLength; |
| 22114 |
no outgoing calls
no test coverage detected