mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 02:17:48 +00:00
Add commas. [ci skip]
This commit is contained in:
58
lodash.js
58
lodash.js
@@ -5152,10 +5152,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the appropriate "iteratee" function. If the `_.iteratee` method is
|
* Gets the appropriate "iteratee" function. If `_.iteratee` is customized,
|
||||||
* customized this function returns the custom method, otherwise it returns
|
* this function returns the custom method, otherwise it returns `baseIteratee`.
|
||||||
* `baseIteratee`. If arguments are provided, the chosen function is invoked
|
* If arguments are provided, the chosen function is invoked with them and
|
||||||
* with them and its result is returned.
|
* its result is returned.
|
||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @param {*} [value] The value to convert to an iteratee.
|
* @param {*} [value] The value to convert to an iteratee.
|
||||||
@@ -6410,8 +6410,8 @@
|
|||||||
/**
|
/**
|
||||||
* Gets the index at which the first occurrence of `value` is found in `array`
|
* Gets the index at which the first occurrence of `value` is found in `array`
|
||||||
* using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
|
* using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
|
||||||
* for equality comparisons. If `fromIndex` is negative, it's used as the offset
|
* for equality comparisons. If `fromIndex` is negative, it's used as the
|
||||||
* from the end of `array`.
|
* offset from the end of `array`.
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
@@ -8380,7 +8380,7 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if `value` is in `collection`. If `collection` is a string it's
|
* Checks if `value` is in `collection`. If `collection` is a string, it's
|
||||||
* checked for a substring of `value`, otherwise
|
* checked for a substring of `value`, otherwise
|
||||||
* [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
|
* [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
|
||||||
* is used for equality comparisons. If `fromIndex` is negative, it's used as
|
* is used for equality comparisons. If `fromIndex` is negative, it's used as
|
||||||
@@ -8425,8 +8425,8 @@
|
|||||||
/**
|
/**
|
||||||
* Invokes the method at `path` of each element in `collection`, returning
|
* Invokes the method at `path` of each element in `collection`, returning
|
||||||
* an array of the results of each invoked method. Any additional arguments
|
* an array of the results of each invoked method. Any additional arguments
|
||||||
* are provided to each invoked method. If `methodName` is a function it's
|
* are provided to each invoked method. If `methodName` is a function, it's
|
||||||
* invoked for, and `this` bound to, each element in `collection`.
|
* invoked for and `this` bound to, each element in `collection`.
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
@@ -8627,7 +8627,7 @@
|
|||||||
* Reduces `collection` to a value which is the accumulated result of running
|
* Reduces `collection` to a value which is the accumulated result of running
|
||||||
* each element in `collection` thru `iteratee`, where each successive
|
* each element in `collection` thru `iteratee`, where each successive
|
||||||
* invocation is supplied the return value of the previous. If `accumulator`
|
* invocation is supplied the return value of the previous. If `accumulator`
|
||||||
* is not given the first element of `collection` is used as the initial
|
* is not given, the first element of `collection` is used as the initial
|
||||||
* value. The iteratee is invoked with four arguments:
|
* value. The iteratee is invoked with four arguments:
|
||||||
* (accumulator, value, index|key, collection).
|
* (accumulator, value, index|key, collection).
|
||||||
*
|
*
|
||||||
@@ -9492,7 +9492,7 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a function that memoizes the result of `func`. If `resolver` is
|
* Creates a function that memoizes the result of `func`. If `resolver` is
|
||||||
* provided it determines the cache key for storing the result based on the
|
* provided, it determines the cache key for storing the result based on the
|
||||||
* arguments provided to the memoized function. By default, the first argument
|
* arguments provided to the memoized function. By default, the first argument
|
||||||
* provided to the memoized function is used as the map cache key. The `func`
|
* provided to the memoized function is used as the map cache key. The `func`
|
||||||
* is invoked with the `this` binding of the memoized function.
|
* is invoked with the `this` binding of the memoized function.
|
||||||
@@ -10039,7 +10039,7 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* This method is like `_.clone` except that it accepts `customizer` which
|
* This method is like `_.clone` except that it accepts `customizer` which
|
||||||
* is invoked to produce the cloned value. If `customizer` returns `undefined`
|
* is invoked to produce the cloned value. If `customizer` returns `undefined`,
|
||||||
* cloning is handled by the method instead. The `customizer` is invoked with
|
* cloning is handled by the method instead. The `customizer` is invoked with
|
||||||
* up to four arguments; (value [, index|key, object, stack]).
|
* up to four arguments; (value [, index|key, object, stack]).
|
||||||
*
|
*
|
||||||
@@ -10518,7 +10518,7 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* This method is like `_.isEqual` except that it accepts `customizer` which
|
* This method is like `_.isEqual` except that it accepts `customizer` which
|
||||||
* is invoked to compare values. If `customizer` returns `undefined` comparisons
|
* is invoked to compare values. If `customizer` returns `undefined`, comparisons
|
||||||
* are handled by the method instead. The `customizer` is invoked with up to
|
* are handled by the method instead. The `customizer` is invoked with up to
|
||||||
* six arguments: (objValue, othValue [, index|key, object, other, stack]).
|
* six arguments: (objValue, othValue [, index|key, object, other, stack]).
|
||||||
*
|
*
|
||||||
@@ -10811,7 +10811,7 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* This method is like `_.isMatch` except that it accepts `customizer` which
|
* This method is like `_.isMatch` except that it accepts `customizer` which
|
||||||
* is invoked to compare values. If `customizer` returns `undefined` comparisons
|
* is invoked to compare values. If `customizer` returns `undefined`, comparisons
|
||||||
* are handled by the method instead. The `customizer` is invoked with five
|
* are handled by the method instead. The `customizer` is invoked with five
|
||||||
* arguments: (objValue, srcValue, index|key, object, source).
|
* arguments: (objValue, srcValue, index|key, object, source).
|
||||||
*
|
*
|
||||||
@@ -11622,7 +11622,7 @@
|
|||||||
/**
|
/**
|
||||||
* This method is like `_.assignIn` except that it accepts `customizer`
|
* This method is like `_.assignIn` except that it accepts `customizer`
|
||||||
* which is invoked to produce the assigned values. If `customizer` returns
|
* which is invoked to produce the assigned values. If `customizer` returns
|
||||||
* `undefined` assignment is handled by the method instead. The `customizer`
|
* `undefined`, assignment is handled by the method instead. The `customizer`
|
||||||
* is invoked with five arguments: (objValue, srcValue, key, object, source).
|
* is invoked with five arguments: (objValue, srcValue, key, object, source).
|
||||||
*
|
*
|
||||||
* **Note:** This method mutates `object`.
|
* **Note:** This method mutates `object`.
|
||||||
@@ -11654,7 +11654,7 @@
|
|||||||
/**
|
/**
|
||||||
* This method is like `_.assign` except that it accepts `customizer`
|
* This method is like `_.assign` except that it accepts `customizer`
|
||||||
* which is invoked to produce the assigned values. If `customizer` returns
|
* which is invoked to produce the assigned values. If `customizer` returns
|
||||||
* `undefined` assignment is handled by the method instead. The `customizer`
|
* `undefined`, assignment is handled by the method instead. The `customizer`
|
||||||
* is invoked with five arguments: (objValue, srcValue, key, object, source).
|
* is invoked with five arguments: (objValue, srcValue, key, object, source).
|
||||||
*
|
*
|
||||||
* **Note:** This method mutates `object`.
|
* **Note:** This method mutates `object`.
|
||||||
@@ -11709,7 +11709,7 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates an object that inherits from the `prototype` object. If a
|
* Creates an object that inherits from the `prototype` object. If a
|
||||||
* `properties` object is given its own enumerable string keyed properties
|
* `properties` object is given, its own enumerable string keyed properties
|
||||||
* are assigned to the created object.
|
* are assigned to the created object.
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
@@ -12053,7 +12053,7 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the value at `path` of `object`. If the resolved value is
|
* Gets the value at `path` of `object`. If the resolved value is
|
||||||
* `undefined` the `defaultValue` is used in its place.
|
* `undefined`, the `defaultValue` is used in its place.
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
@@ -12417,7 +12417,7 @@
|
|||||||
/**
|
/**
|
||||||
* This method is like `_.merge` except that it accepts `customizer` which
|
* This method is like `_.merge` except that it accepts `customizer` which
|
||||||
* is invoked to produce the merged values of the destination and source
|
* is invoked to produce the merged values of the destination and source
|
||||||
* properties. If `customizer` returns `undefined` merging is handled by the
|
* properties. If `customizer` returns `undefined`, merging is handled by the
|
||||||
* method instead. The `customizer` is invoked with seven arguments:
|
* method instead. The `customizer` is invoked with seven arguments:
|
||||||
* (objValue, srcValue, key, object, source, stack).
|
* (objValue, srcValue, key, object, source, stack).
|
||||||
*
|
*
|
||||||
@@ -12609,7 +12609,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the value at `path` of `object`. If a portion of `path` doesn't exist
|
* Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
|
||||||
* it's created. Arrays are created for missing index properties while objects
|
* it's created. Arrays are created for missing index properties while objects
|
||||||
* are created for all other missing properties. Use `_.setWith` to customize
|
* are created for all other missing properties. Use `_.setWith` to customize
|
||||||
* `path` creation.
|
* `path` creation.
|
||||||
@@ -12962,7 +12962,7 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if `n` is between `start` and up to but not including, `end`. If
|
* Checks if `n` is between `start` and up to but not including, `end`. If
|
||||||
* `end` is not specified it's set to `start` with `start` then set to `0`.
|
* `end` is not specified, it's set to `start` with `start` then set to `0`.
|
||||||
* If `start` is greater than `end` the params are swapped to support
|
* If `start` is greater than `end` the params are swapped to support
|
||||||
* negative ranges.
|
* negative ranges.
|
||||||
*
|
*
|
||||||
@@ -13619,7 +13619,7 @@
|
|||||||
* in "interpolate" delimiters, HTML-escape interpolated data properties in
|
* in "interpolate" delimiters, HTML-escape interpolated data properties in
|
||||||
* "escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data
|
* "escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data
|
||||||
* properties may be accessed as free variables in the template. If a setting
|
* properties may be accessed as free variables in the template. If a setting
|
||||||
* object is given it takes precedence over `_.templateSettings` values.
|
* object is given, it takes precedence over `_.templateSettings` values.
|
||||||
*
|
*
|
||||||
* **Note:** In the development build `_.template` utilizes
|
* **Note:** In the development build `_.template` utilizes
|
||||||
* [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)
|
* [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)
|
||||||
@@ -14414,8 +14414,8 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a function that invokes `func` with the arguments of the created
|
* Creates a function that invokes `func` with the arguments of the created
|
||||||
* function. If `func` is a property name the created function returns the
|
* function. If `func` is a property name, the created function returns the
|
||||||
* property value for a given element. If `func` is an array or object the
|
* property value for a given element. If `func` is an array or object, the
|
||||||
* created function returns `true` for elements that contain the equivalent
|
* created function returns `true` for elements that contain the equivalent
|
||||||
* source properties, otherwise it returns `false`.
|
* source properties, otherwise it returns `false`.
|
||||||
*
|
*
|
||||||
@@ -14575,7 +14575,7 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds all own enumerable string keyed function properties of a source
|
* Adds all own enumerable string keyed function properties of a source
|
||||||
* object to the destination object. If `object` is a function then methods
|
* object to the destination object. If `object` is a function, then methods
|
||||||
* are added to its prototype as well.
|
* are added to its prototype as well.
|
||||||
*
|
*
|
||||||
* **Note:** Use `_.runInContext` to create a pristine `lodash` function to
|
* **Note:** Use `_.runInContext` to create a pristine `lodash` function to
|
||||||
@@ -14832,7 +14832,7 @@
|
|||||||
/**
|
/**
|
||||||
* Creates an array of numbers (positive and/or negative) progressing from
|
* Creates an array of numbers (positive and/or negative) progressing from
|
||||||
* `start` up to, but not including, `end`. A step of `-1` is used if a negative
|
* `start` up to, but not including, `end`. A step of `-1` is used if a negative
|
||||||
* `start` is specified without an `end` or `step`. If `end` is not specified
|
* `start` is specified without an `end` or `step`. If `end` is not specified,
|
||||||
* it's set to `start` with `start` then set to `0`.
|
* it's set to `start` with `start` then set to `0`.
|
||||||
*
|
*
|
||||||
* **Note:** JavaScript follows the IEEE-754 standard for resolving
|
* **Note:** JavaScript follows the IEEE-754 standard for resolving
|
||||||
@@ -14979,7 +14979,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generates a unique ID. If `prefix` is given the ID is appended to it.
|
* Generates a unique ID. If `prefix` is given, the ID is appended to it.
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @since 0.1.0
|
* @since 0.1.0
|
||||||
@@ -15087,7 +15087,7 @@
|
|||||||
var floor = createRound('floor');
|
var floor = createRound('floor');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Computes the maximum value of `array`. If `array` is empty or falsey
|
* Computes the maximum value of `array`. If `array` is empty or falsey,
|
||||||
* `undefined` is returned.
|
* `undefined` is returned.
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
@@ -15187,7 +15187,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Computes the minimum value of `array`. If `array` is empty or falsey
|
* Computes the minimum value of `array`. If `array` is empty or falsey,
|
||||||
* `undefined` is returned.
|
* `undefined` is returned.
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
|
|||||||
Reference in New Issue
Block a user