mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 10:27:49 +00:00
Use "length" when referring to a property name. [ci skip]
This commit is contained in:
@@ -1094,7 +1094,7 @@
|
|||||||
*
|
*
|
||||||
* Firefox < 10, compatibility modes of IE 8, and IE < 9 have buggy Array `shift()`
|
* Firefox < 10, compatibility modes of IE 8, and IE < 9 have buggy Array `shift()`
|
||||||
* and `splice()` functions that fail to remove the last element, `value[0]`,
|
* and `splice()` functions that fail to remove the last element, `value[0]`,
|
||||||
* of array-like objects even though the `length` property is set to `0`.
|
* of array-like objects even though the "length" property is set to `0`.
|
||||||
* The `shift()` method is buggy in compatibility modes of IE 8, while `splice()`
|
* The `shift()` method is buggy in compatibility modes of IE 8, while `splice()`
|
||||||
* is buggy regardless of mode in IE < 9.
|
* is buggy regardless of mode in IE < 9.
|
||||||
*
|
*
|
||||||
@@ -5450,7 +5450,7 @@
|
|||||||
/**
|
/**
|
||||||
* Creates a slice of `array` from `start` up to, but not including, `end`.
|
* Creates a slice of `array` from `start` up to, but not including, `end`.
|
||||||
*
|
*
|
||||||
* **Note:** This function is used instead of `Array#slice` to support node
|
* **Note:** This method is used instead of `Array#slice` to support node
|
||||||
* lists in IE < 9 and to ensure dense arrays are returned.
|
* lists in IE < 9 and to ensure dense arrays are returned.
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
@@ -6512,7 +6512,7 @@
|
|||||||
* (value, index|key, collection). Iteratee functions may exit iteration early
|
* (value, index|key, collection). Iteratee functions may exit iteration early
|
||||||
* by explicitly returning `false`.
|
* by explicitly returning `false`.
|
||||||
*
|
*
|
||||||
* **Note:** As with other "Collections" methods, objects with a `length` property
|
* **Note:** As with other "Collections" methods, objects with a "length" property
|
||||||
* are iterated like arrays. To avoid this behavior `_.forIn` or `_.forOwn`
|
* are iterated like arrays. To avoid this behavior `_.forIn` or `_.forOwn`
|
||||||
* may be used for object iteration.
|
* may be used for object iteration.
|
||||||
*
|
*
|
||||||
@@ -7478,7 +7478,7 @@
|
|||||||
* The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,
|
* The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,
|
||||||
* may be used as a placeholder for partially applied arguments.
|
* may be used as a placeholder for partially applied arguments.
|
||||||
*
|
*
|
||||||
* **Note:** Unlike native `Function#bind` this method does not set the `length`
|
* **Note:** Unlike native `Function#bind` this method does not set the "length"
|
||||||
* property of bound functions.
|
* property of bound functions.
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
@@ -7520,7 +7520,7 @@
|
|||||||
* of method names. If no method names are provided all enumerable function
|
* of method names. If no method names are provided all enumerable function
|
||||||
* properties, own and inherited, of `object` are bound.
|
* properties, own and inherited, of `object` are bound.
|
||||||
*
|
*
|
||||||
* **Note:** This method does not set the `length` property of bound functions.
|
* **Note:** This method does not set the "length" property of bound functions.
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
@@ -7618,7 +7618,7 @@
|
|||||||
* The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,
|
* The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,
|
||||||
* may be used as a placeholder for provided arguments.
|
* may be used as a placeholder for provided arguments.
|
||||||
*
|
*
|
||||||
* **Note:** This method does not set the `length` property of curried functions.
|
* **Note:** This method does not set the "length" property of curried functions.
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
@@ -7657,7 +7657,7 @@
|
|||||||
* The `_.curryRight.placeholder` value, which defaults to `_` in monolithic
|
* The `_.curryRight.placeholder` value, which defaults to `_` in monolithic
|
||||||
* builds, may be used as a placeholder for provided arguments.
|
* builds, may be used as a placeholder for provided arguments.
|
||||||
*
|
*
|
||||||
* **Note:** This method does not set the `length` property of curried functions.
|
* **Note:** This method does not set the "length" property of curried functions.
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
@@ -8080,7 +8080,7 @@
|
|||||||
* The `_.partial.placeholder` value, which defaults to `_` in monolithic
|
* The `_.partial.placeholder` value, which defaults to `_` in monolithic
|
||||||
* builds, may be used as a placeholder for partially applied arguments.
|
* builds, may be used as a placeholder for partially applied arguments.
|
||||||
*
|
*
|
||||||
* **Note:** This method does not set the `length` property of partially
|
* **Note:** This method does not set the "length" property of partially
|
||||||
* applied functions.
|
* applied functions.
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
@@ -8113,7 +8113,7 @@
|
|||||||
* The `_.partialRight.placeholder` value, which defaults to `_` in monolithic
|
* The `_.partialRight.placeholder` value, which defaults to `_` in monolithic
|
||||||
* builds, may be used as a placeholder for partially applied arguments.
|
* builds, may be used as a placeholder for partially applied arguments.
|
||||||
*
|
*
|
||||||
* **Note:** This method does not set the `length` property of partially
|
* **Note:** This method does not set the "length" property of partially
|
||||||
* applied functions.
|
* applied functions.
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
@@ -12113,7 +12113,7 @@
|
|||||||
useLazy = isLazy || isArray(value);
|
useLazy = isLazy || isArray(value);
|
||||||
|
|
||||||
if (useLazy && checkIteratee && typeof iteratee == 'function' && iteratee.length != 1) {
|
if (useLazy && checkIteratee && typeof iteratee == 'function' && iteratee.length != 1) {
|
||||||
// avoid lazy use if the iteratee has a `length` other than `1`
|
// avoid lazy use if the iteratee has a "length" value other than `1`
|
||||||
isLazy = useLazy = false;
|
isLazy = useLazy = false;
|
||||||
}
|
}
|
||||||
var onlyLazy = isLazy && !isHybrid;
|
var onlyLazy = isLazy && !isHybrid;
|
||||||
|
|||||||
Reference in New Issue
Block a user