mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 19:37:49 +00:00
Minor doc / source cleanup.
This commit is contained in:
14
lodash.js
14
lodash.js
@@ -1461,7 +1461,7 @@
|
|||||||
* of values to exclude.
|
* of values to exclude.
|
||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @param {Array} array The array to process.
|
* @param {Array} array The array to inspect.
|
||||||
* @param {Array} [values] The array of values to exclude.
|
* @param {Array} [values] The array of values to exclude.
|
||||||
* @returns {Array} Returns the new array of filtered values.
|
* @returns {Array} Returns the new array of filtered values.
|
||||||
*/
|
*/
|
||||||
@@ -1895,7 +1895,7 @@
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
var valProps = isErr ? ['message', 'name'] : keys(value),
|
var valProps = isErr ? ['message', 'name'] : keys(value),
|
||||||
othProps = isErr ? ['message', 'name'] : keys(other);
|
othProps = isErr ? valProps : keys(other);
|
||||||
|
|
||||||
if (valIsArg) {
|
if (valIsArg) {
|
||||||
valProps.push('length');
|
valProps.push('length');
|
||||||
@@ -2094,7 +2094,7 @@
|
|||||||
* and `this` binding.
|
* and `this` binding.
|
||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @param {Array} array The array to process.
|
* @param {Array} array The array to inspect.
|
||||||
* @param {boolean} [isSorted=false] A flag to indicate that `array` is sorted.
|
* @param {boolean} [isSorted=false] A flag to indicate that `array` is sorted.
|
||||||
* @param {Function} [callback] The function called per iteration.
|
* @param {Function} [callback] The function called per iteration.
|
||||||
* @returns {Array} Returns the new duplicate-value-free array.
|
* @returns {Array} Returns the new duplicate-value-free array.
|
||||||
@@ -2715,7 +2715,7 @@
|
|||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
* @category Arrays
|
* @category Arrays
|
||||||
* @param {Array} array The array to process.
|
* @param {Array} array The array to inspect.
|
||||||
* @param {...Array} [values] The arrays of values to exclude.
|
* @param {...Array} [values] The arrays of values to exclude.
|
||||||
* @returns {Array} Returns the new array of filtered values.
|
* @returns {Array} Returns the new array of filtered values.
|
||||||
* @example
|
* @example
|
||||||
@@ -3710,7 +3710,7 @@
|
|||||||
* @memberOf _
|
* @memberOf _
|
||||||
* @alias unique
|
* @alias unique
|
||||||
* @category Arrays
|
* @category Arrays
|
||||||
* @param {Array} array The array to process.
|
* @param {Array} array The array to inspect.
|
||||||
* @param {boolean} [isSorted=false] A flag to indicate that `array` is sorted.
|
* @param {boolean} [isSorted=false] A flag to indicate that `array` is sorted.
|
||||||
* @param {Function|Object|string} [callback] The function called per iteration.
|
* @param {Function|Object|string} [callback] The function called per iteration.
|
||||||
* If a property name or object is provided it is used to create a "_.pluck"
|
* If a property name or object is provided it is used to create a "_.pluck"
|
||||||
@@ -5545,7 +5545,7 @@
|
|||||||
trailing = false;
|
trailing = false;
|
||||||
} else if (isObject(options)) {
|
} else if (isObject(options)) {
|
||||||
leading = options.leading;
|
leading = options.leading;
|
||||||
maxWait = 'maxWait' in options && nativeMax(wait, +options.maxWait || 0);
|
maxWait = 'maxWait' in options && nativeMax(+options.maxWait || 0, wait);
|
||||||
trailing = 'trailing' in options ? options.trailing : trailing;
|
trailing = 'trailing' in options ? options.trailing : trailing;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -7830,7 +7830,7 @@
|
|||||||
string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
|
string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
|
||||||
interpolateValue || (interpolateValue = esTemplateValue);
|
interpolateValue || (interpolateValue = esTemplateValue);
|
||||||
|
|
||||||
// escape characters that cannot be included in string literals
|
// escape characters that can't be included in string literals
|
||||||
source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);
|
source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);
|
||||||
|
|
||||||
// replace delimiters with snippets
|
// replace delimiters with snippets
|
||||||
|
|||||||
Reference in New Issue
Block a user