From af8a8f1e3f4574322218737af29d25ee93769c2e Mon Sep 17 00:00:00 2001 From: jdalton Date: Mon, 2 Feb 2015 23:15:43 -0800 Subject: [PATCH] Add spec note to `isLength` and update spec link for `MAX_SAFE_INTEGER`. [ci skip] --- lodash.src.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lodash.src.js b/lodash.src.js index 4beb4a674..313836124 100644 --- a/lodash.src.js +++ b/lodash.src.js @@ -796,7 +796,7 @@ /** * Used as the maximum length of an array-like value. - * See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength) + * See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer) * for more details. */ var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1; @@ -3765,6 +3765,10 @@ /** * Checks if `value` is a valid array-like length. * + * **Note:** This function is based on ES `ToLength`. See the + * [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength) + * for more details. + * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.