summaryrefslogtreecommitdiff
path: root/tools/eslint/node_modules/lodash/isLength.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/eslint/node_modules/lodash/isLength.js')
-rw-r--r--tools/eslint/node_modules/lodash/isLength.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/tools/eslint/node_modules/lodash/isLength.js b/tools/eslint/node_modules/lodash/isLength.js
index 2f04aca810..cd9b257217 100644
--- a/tools/eslint/node_modules/lodash/isLength.js
+++ b/tools/eslint/node_modules/lodash/isLength.js
@@ -4,13 +4,16 @@ var MAX_SAFE_INTEGER = 9007199254740991;
/**
* Checks if `value` is a valid array-like length.
*
- * **Note:** This function is loosely based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
+ * **Note:** This function is loosely based on
+ * [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
+ * @returns {boolean} Returns `true` if `value` is a valid length,
+ * else `false`.
* @example
*
* _.isLength(3);
@@ -26,7 +29,8 @@ var MAX_SAFE_INTEGER = 9007199254740991;
* // => false
*/
function isLength(value) {
- return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
+ return typeof value == 'number' &&
+ value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
}
module.exports = isLength;