mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 03:17:49 +00:00
Minor documentation and test name nits. [ci skip]
This commit is contained in:
@@ -444,7 +444,7 @@
|
|||||||
* Used by `_.sortByOrder` to compare multiple properties of each element
|
* Used by `_.sortByOrder` to compare multiple properties of each element
|
||||||
* in a collection and stable sort them in the following order:
|
* in a collection and stable sort them in the following order:
|
||||||
*
|
*
|
||||||
* If orders is unspecified, sort in ascending order for all properties.
|
* If `orders` is unspecified, sort in ascending order for all properties.
|
||||||
* Otherwise, for each property, sort in ascending order if its corresponding value in
|
* Otherwise, for each property, sort in ascending order if its corresponding value in
|
||||||
* orders is true, and descending order if false.
|
* orders is true, and descending order if false.
|
||||||
*
|
*
|
||||||
@@ -1808,7 +1808,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Copies the properties of `source` to `object`.
|
* Copies properties of `source` to `object`.
|
||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @param {Object} source The object to copy properties from.
|
* @param {Object} source The object to copy properties from.
|
||||||
@@ -2897,7 +2897,7 @@
|
|||||||
/**
|
/**
|
||||||
* The base implementation of `_.values` and `_.valuesIn` which creates an
|
* The base implementation of `_.values` and `_.valuesIn` which creates an
|
||||||
* array of `object` property values corresponding to the property names
|
* array of `object` property values corresponding to the property names
|
||||||
* returned by `keysFunc`.
|
* of `props`.
|
||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @param {Object} object The object to query.
|
* @param {Object} object The object to query.
|
||||||
@@ -4371,7 +4371,7 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* A specialized version of `_.pick` that picks `object` properties specified
|
* A specialized version of `_.pick` that picks `object` properties specified
|
||||||
* by the `props` array.
|
* by `props`.
|
||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @param {Object} object The source object.
|
* @param {Object} object The source object.
|
||||||
@@ -11231,13 +11231,13 @@
|
|||||||
* destination object. If `object` is a function then methods are added to
|
* destination object. If `object` is a function then methods are added to
|
||||||
* its prototype as well.
|
* its prototype as well.
|
||||||
*
|
*
|
||||||
* **Note:** Use `_.runInContext` to create a pristine `lodash` function
|
* **Note:** Use `_.runInContext` to create a pristine `lodash` function to
|
||||||
* for mixins to avoid conflicts caused by modifying the original.
|
* avoid conflicts caused by modifying the original.
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
* @category Utility
|
* @category Utility
|
||||||
* @param {Function|Object} [object=this] object The destination object.
|
* @param {Function|Object} [object=lodash] The destination object.
|
||||||
* @param {Object} source The object of functions to add.
|
* @param {Object} source The object of functions to add.
|
||||||
* @param {Object} [options] The options object.
|
* @param {Object} [options] The options object.
|
||||||
* @param {boolean} [options.chain=true] Specify whether the functions added
|
* @param {boolean} [options.chain=true] Specify whether the functions added
|
||||||
|
|||||||
@@ -304,8 +304,8 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used to check for problems removing whitespace. For a whitespace reference
|
* Used to check for problems removing whitespace. For a whitespace reference,
|
||||||
* see V8's unit test https://code.google.com/p/v8/source/browse/branches/bleeding_edge/test/mjsunit/whitespaces.js.
|
* see [V8's unit test](https://code.google.com/p/v8/source/browse/branches/bleeding_edge/test/mjsunit/whitespaces.js).
|
||||||
*/
|
*/
|
||||||
var whitespace = ' \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000';
|
var whitespace = ' \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000';
|
||||||
|
|
||||||
@@ -1059,7 +1059,7 @@
|
|||||||
return slice.call(arguments);
|
return slice.call(arguments);
|
||||||
}
|
}
|
||||||
|
|
||||||
test('should cap the numer of params provided to `func`', 2, function() {
|
test('should cap the number of params provided to `func`', 2, function() {
|
||||||
var actual = _.map(['6', '8', '10'], _.ary(parseInt, 1));
|
var actual = _.map(['6', '8', '10'], _.ary(parseInt, 1));
|
||||||
deepEqual(actual, [6, 8, 10]);
|
deepEqual(actual, [6, 8, 10]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user