Fix typos [ci skip]

This commit is contained in:
Benjamin Tan
2014-04-06 21:47:01 +08:00
parent dbb48cf086
commit 1dcf3585fb

View File

@@ -252,7 +252,7 @@
* @private * @private
* @param {*} value The value to compare to `other`. * @param {*} value The value to compare to `other`.
* @param {*} other The value to compare to `value`. * @param {*} other The value to compare to `value`.
* @returns {number} Returns the sort order indicator for `a`. * @returns {number} Returns the sort order indicator for `value`.
*/ */
function baseCompareAscending(value, other) { function baseCompareAscending(value, other) {
if (value !== other) { if (value !== other) {
@@ -305,8 +305,8 @@
* collection is a string value. * collection is a string value.
* *
* @private * @private
* @param {string} value The character to inspect. * @param {string} value The string to inspect.
* @returns {number} Returns the code unit of the given character. * @returns {number} Returns the code unit of the first character of the string.
*/ */
function charAtCallback(value) { function charAtCallback(value) {
return value.charCodeAt(0); return value.charCodeAt(0);
@@ -317,7 +317,7 @@
* *
* @private * @private
* @param {string} string The string to inspect. * @param {string} string The string to inspect.
* @param {string} chars The chars to find. * @param {string} chars The characters to find.
* @returns {number} Returns the index of the first character not found in `chars`. * @returns {number} Returns the index of the first character not found in `chars`.
*/ */
function charsLeftIndex(string, chars) { function charsLeftIndex(string, chars) {
@@ -337,7 +337,7 @@
* *
* @private * @private
* @param {string} string The string to inspect. * @param {string} string The string to inspect.
* @param {string} chars The chars to find. * @param {string} chars The characters to find.
* @returns {number} Returns the index of the last character not found in `chars`. * @returns {number} Returns the index of the last character not found in `chars`.
*/ */
function charsRightIndex(string, chars) { function charsRightIndex(string, chars) {
@@ -355,7 +355,7 @@
* sort them in ascending order. * sort them in ascending order.
* *
* @private * @private
* @param {Object} value The object to compare to `other`. * @param {Object} object The object to compare to `other`.
* @param {Object} other The object to compare to `object`. * @param {Object} other The object to compare to `object`.
* @returns {number} Returns the sort order indicator for `object`. * @returns {number} Returns the sort order indicator for `object`.
*/ */
@@ -368,7 +368,7 @@
* collection and stable sort them in ascending order. * collection and stable sort them in ascending order.
* *
* @private * @private
* @param {Object} value The object to compare to `other`. * @param {Object} object The object to compare to `other`.
* @param {Object} other The object to compare to `object`. * @param {Object} other The object to compare to `object`.
* @returns {number} Returns the sort order indicator for `object`. * @returns {number} Returns the sort order indicator for `object`.
*/ */
@@ -385,7 +385,7 @@
} }
} }
// Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications
// that causes it, under certain circumstances, to provided the same value // that causes it, under certain circumstances, to provide the same value
// for `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247 // for `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247
// //
// This also ensures a stable sort in V8 and other engines. // This also ensures a stable sort in V8 and other engines.
@@ -688,7 +688,7 @@
ctorByClass[regexpClass] = RegExp; ctorByClass[regexpClass] = RegExp;
ctorByClass[stringClass] = String; ctorByClass[stringClass] = String;
/** Used to avoid iterating non-enumerable properties in IE < 9 */ /** Used to avoid iterating over non-enumerable properties in IE < 9 */
var nonEnumProps = {}; var nonEnumProps = {};
nonEnumProps[arrayClass] = nonEnumProps[dateClass] = nonEnumProps[numberClass] = { 'constructor': true, 'toLocaleString': true, 'toString': true, 'valueOf': true }; nonEnumProps[arrayClass] = nonEnumProps[dateClass] = nonEnumProps[numberClass] = { 'constructor': true, 'toLocaleString': true, 'toString': true, 'valueOf': true };
nonEnumProps[boolClass] = nonEnumProps[stringClass] = { 'constructor': true, 'toString': true, 'valueOf': true }; nonEnumProps[boolClass] = nonEnumProps[stringClass] = { 'constructor': true, 'toString': true, 'valueOf': true };
@@ -1426,7 +1426,7 @@
} }
/** /**
* The base implementation of `_.find`, '_.findLast`, `_.findKey`, and `_.findLastKey` * The base implementation of `_.find`, `_.findLast`, `_.findKey`, and `_.findLastKey`
* without support for callback shorthands or `this` binding which iterates * without support for callback shorthands or `this` binding which iterates
* over `collection` using the provided `eachFunc`. * over `collection` using the provided `eachFunc`.
* *
@@ -1921,7 +1921,7 @@
* placeholders, and provided arguments into a single array of arguments. * placeholders, and provided arguments into a single array of arguments.
* *
* @private * @private
* @param {Array} partialArg An array of arguments to prepend to those provided. * @param {Array} partialArgs An array of arguments to prepend to those provided.
* @param {Array} partialHolders An array of `partialArgs` placeholder indexes. * @param {Array} partialHolders An array of `partialArgs` placeholder indexes.
* @param {Array|Object} args The provided arguments. * @param {Array|Object} args The provided arguments.
* @returns {Array} Returns the new array of composed arguments. * @returns {Array} Returns the new array of composed arguments.
@@ -1951,7 +1951,7 @@
* is tailored for `_.partialRight`. * is tailored for `_.partialRight`.
* *
* @private * @private
* @param {Array} partialRightArg An array of arguments to append to those provided. * @param {Array} partialRightArgs An array of arguments to append to those provided.
* @param {Array} partialHolders An array of `partialRightArgs` placeholder indexes. * @param {Array} partialHolders An array of `partialRightArgs` placeholder indexes.
* @param {Array|Object} args The provided arguments. * @param {Array|Object} args The provided arguments.
* @returns {Array} Returns the new array of composed arguments. * @returns {Array} Returns the new array of composed arguments.
@@ -2761,7 +2761,7 @@
* @static * @static
* @memberOf _ * @memberOf _
* @category Arrays * @category Arrays
* @param {...Array} [array] The arrays to inspect. * @param {...Array} [arrays] The arrays to inspect.
* @returns {Array} Returns the new array of shared values. * @returns {Array} Returns the new array of shared values.
* @example * @example
* *
@@ -2890,7 +2890,7 @@
* @memberOf _ * @memberOf _
* @category Arrays * @category Arrays
* @param {Array} array The array to modify. * @param {Array} array The array to modify.
* @param {...*} [value] The values to remove. * @param {...*} [values] The values to remove.
* @returns {Array} Returns `array`. * @returns {Array} Returns `array`.
* @example * @example
* *
@@ -3253,7 +3253,7 @@
* @static * @static
* @memberOf _ * @memberOf _
* @category Arrays * @category Arrays
* @param {...Array} [array] The arrays to inspect. * @param {...Array} [arrays] The arrays to inspect.
* @returns {Array} Returns the new array of combined values. * @returns {Array} Returns the new array of combined values.
* @example * @example
* *
@@ -3342,7 +3342,7 @@
* @memberOf _ * @memberOf _
* @category Arrays * @category Arrays
* @param {Array} array The array to filter. * @param {Array} array The array to filter.
* @param {...*} [value] The values to exclude. * @param {...*} [values] The values to exclude.
* @returns {Array} Returns the new array of filtered values. * @returns {Array} Returns the new array of filtered values.
* @example * @example
* *
@@ -3361,7 +3361,7 @@
* @static * @static
* @memberOf _ * @memberOf _
* @category Arrays * @category Arrays
* @param {...Array} [array] The arrays to inspect. * @param {...Array} [arrays] The arrays to inspect.
* @returns {Array} Returns the new array of values. * @returns {Array} Returns the new array of values.
* @example * @example
* *
@@ -3396,7 +3396,7 @@
* @memberOf _ * @memberOf _
* @alias unzip * @alias unzip
* @category Arrays * @category Arrays
* @param {...Array} [array] The arrays to process. * @param {...Array} [arrays] The arrays to process.
* @returns {Array} Returns the array of grouped elements. * @returns {Array} Returns the array of grouped elements.
* @example * @example
* *
@@ -4521,7 +4521,7 @@
* @category Collections * @category Collections
* @param {Array|Object|string} collection The collection to sample. * @param {Array|Object|string} collection The collection to sample.
* @param {number} [n] The number of elements to sample. * @param {number} [n] The number of elements to sample.
* @param- {Object} [guard] Enables use as a callback for functions like `_.map`. * @param {Object} [guard] Enables use as a callback for functions like `_.map`.
* @returns {*} Returns the random sample(s). * @returns {*} Returns the random sample(s).
* @example * @example
* *
@@ -7881,7 +7881,7 @@
} }
/** /**
* Reverts the '_' variable to its previous value and returns a reference to * Reverts the `_` variable to its previous value and returns a reference to
* the `lodash` function. * the `lodash` function.
* *
* @static * @static