Update docs, dist builds, and fix build.

Former-commit-id: 95a2ae15735b2c98f24c20b8dc894c2832ac107b
This commit is contained in:
John-David Dalton
2013-08-03 19:26:05 -07:00
parent aa465a12aa
commit f623a4ecef
9 changed files with 244 additions and 223 deletions

View File

@@ -229,7 +229,7 @@
* `sortedIndex`, `runInContext`, `template`, `unescape`, `uniqueId`, and `value`
*
* The wrapper functions `first` and `last` return wrapped values when `n` is
* passed, otherwise they return unwrapped values.
* provided, otherwise they return unwrapped values.
*
* @name _
* @constructor
@@ -591,14 +591,14 @@
/**
* Creates a function that, when called, invokes `func` with the `this` binding
* of `thisArg` and prepends any `partialArgs` to the arguments passed to the
* of `thisArg` and prepends any `partialArgs` to the arguments provided to the
* bound function.
*
* @private
* @param {Function|String} func The function to bind or the method name.
* @param {Mixed} thisArg The `this` binding of `func`.
* @param {Array} partialArgs An array of arguments to be prepended to those passed to the new function.
* @param {Array} partialRightArgs An array of arguments to be appended to those passed to the new function.
* @param {Array} partialArgs An array of arguments to be prepended to those provided to the new function.
* @param {Array} partialRightArgs An array of arguments to be appended to those provided to the new function.
* @param {Boolean} [isPartial=false] A flag to indicate performing only partial application.
* @param {Boolean} [isAlt=false] A flag to indicate `_.bindKey` or `_.partialRight` behavior.
* @returns {Function} Returns the new bound function.
@@ -1661,7 +1661,7 @@
* per iteration. If a property name or object is provided, it will be used
* to create a "_.pluck" or "_.where" style callback, respectively.
* @param {Mixed} [thisArg] The `this` binding of `callback`.
* @returns {Boolean} Returns `true` if all elements pass the callback check,
* @returns {Boolean} Returns `true` if all elements passed the callback check,
* else `false`.
* @example
*
@@ -1974,7 +1974,7 @@
/**
* Invokes the method named by `methodName` on each element in the `collection`,
* returning an array of the results of each invoked method. Additional arguments
* will be passed to each invoked method. If `methodName` is a function, it will
* will be provided to each invoked method. If `methodName` is a function, it will
* be invoked for, and `this` bound to, each element in the `collection`.
*
* @static
@@ -2235,7 +2235,7 @@
* Reduces a `collection` to a value which is the accumulated result of running
* each element in the `collection` through the `callback`, where each successive
* `callback` execution consumes the return value of the previous execution.
* If `accumulator` is not passed, the first element of the `collection` will be
* If `accumulator` is not provided, the first element of the `collection` will be
* used as the initial `accumulator` value. The `callback` is bound to `thisArg`
* and invoked with four arguments; (accumulator, value, index|key, collection).
*
@@ -2436,7 +2436,7 @@
* per iteration. If a property name or object is provided, it will be used
* to create a "_.pluck" or "_.where" style callback, respectively.
* @param {Mixed} [thisArg] The `this` binding of `callback`.
* @returns {Boolean} Returns `true` if any element passes the callback check,
* @returns {Boolean} Returns `true` if any element passed the callback check,
* else `false`.
* @example
*
@@ -2619,8 +2619,8 @@
}
/**
* Creates an array excluding all values of the passed-in arrays using
* strict equality for comparisons, i.e. `===`.
* Creates an array excluding all values of the provided arrays using strict
* equality for comparisons, i.e. `===`.
*
* @static
* @memberOf _
@@ -2883,7 +2883,7 @@
}
/**
* Creates an array of unique values present in all passed-in arrays using
* Creates an array of unique values present in all provided arrays using
* strict equality for comparisons, i.e. `===`.
*
* @static
@@ -3057,6 +3057,9 @@
* _.range(0, -10, -1);
* // => [0, -1, -2, -3, -4, -5, -6, -7, -8, -9]
*
* _.range(1, 4, 0);
* // => [1, 1, 1]
*
* _.range(0);
* // => []
*/
@@ -3221,8 +3224,8 @@
}
/**
* Creates an array of unique values, in order, of the passed-in arrays
* using strict equality for comparisons, i.e. `===`.
* Creates an array of unique values, in order, of the provided arrays using
* strict equality for comparisons, i.e. `===`.
*
* @static
* @memberOf _
@@ -3296,7 +3299,7 @@
}
/**
* Creates an array excluding all passed values using strict equality for
* Creates an array excluding all provided values using strict equality for
* comparisons, i.e. `===`.
*
* @static
@@ -3407,7 +3410,7 @@
/**
* Creates a function that, when called, invokes `func` with the `this`
* binding of `thisArg` and prepends any additional `bind` arguments to those
* passed to the bound function.
* provided to the bound function.
*
* @static
* @memberOf _
@@ -3467,7 +3470,7 @@
}
/**
* Creates a function that is the composition of the passed functions,
* Creates a function that is the composition of the provided functions,
* where each function consumes the return value of the function that follows.
* For example, composing the functions `f()`, `g()`, and `h()` produces `f(g(h()))`.
* Each function is executed with the `this` binding of the composed function.
@@ -3688,7 +3691,7 @@
/**
* Defers executing the `func` function until the current call stack has cleared.
* Additional arguments will be passed to `func` when it is invoked.
* Additional arguments will be provided to `func` when it is invoked.
*
* @static
* @memberOf _
@@ -3708,7 +3711,7 @@
/**
* Executes the `func` function after `wait` milliseconds. Additional arguments
* will be passed to `func` when it is invoked.
* will be provided to `func` when it is invoked.
*
* @static
* @memberOf _
@@ -3730,11 +3733,11 @@
/**
* Creates a function that memoizes the result of `func`. If `resolver` is
* passed, it will be used to determine the cache key for storing the result
* based on the arguments passed to the memoized function. By default, the first
* argument passed to the memoized function is used as the cache key. The `func`
* is executed with the `this` binding of the memoized function. The result
* cache is exposed as the `cache` property on the memoized function.
* provided, it will be used to determine the cache key for storing the result
* based on the arguments provided to the memoized function. By default, the
* first argument provided to the memoized function is used as the cache key.
* The `func` is executed with the `this` binding of the memoized function.
* The result cache is exposed as the `cache` property on the memoized function.
*
* @static
* @memberOf _
@@ -3794,7 +3797,7 @@
/**
* Creates a function that, when called, invokes `func` with any additional
* `partial` arguments prepended to those passed to the new function. This
* `partial` arguments prepended to those provided to the new function. This
* method is similar to `_.bind`, except it does **not** alter the `this` binding.
*
* @static
@@ -3865,8 +3868,8 @@
/**
* Creates a function that passes `value` to the `wrapper` function as its
* first argument. Additional arguments passed to the function are appended
* to those passed to the `wrapper` function. The `wrapper` is executed with
* first argument. Additional arguments provided to the function are appended
* to those provided to the `wrapper` function. The `wrapper` is executed with
* the `this` binding of the created function.
*
* @static
@@ -3913,7 +3916,7 @@
}
/**
* This method returns the first argument passed to it.
* This method returns the first argument provided to it.
*
* @static
* @memberOf _