diff --git a/dist/lodash.compat.js b/dist/lodash.compat.js index 6679fc0f5..3d90ee5b0 100644 --- a/dist/lodash.compat.js +++ b/dist/lodash.compat.js @@ -2756,7 +2756,7 @@ * Creates a shallow clone of `object` excluding the specified properties. * Property names may be specified as individual arguments or as arrays of * property names. If a callback is provided it will be executed for each - * property of `object` omitting the properties the callback returns truthy + * property of `object` omitting the properties the callback returns truey * for. The callback is bound to `thisArg` and invoked with three arguments; * (value, key, object). * @@ -2830,7 +2830,7 @@ * Creates a shallow clone of `object` composed of the specified properties. * Property names may be specified as individual arguments or as arrays of * property names. If a callback is provided it will be executed for each - * property of `object` picking the properties the callback returns truthy + * property of `object` picking the properties the callback returns truey * for. The callback is bound to `thisArg` and invoked with three arguments; * (value, key, object). * @@ -3079,7 +3079,7 @@ }); /** - * Checks if the given callback returns truthy value for **all** elements of + * Checks if the given callback returns truey value for **all** elements of * a collection. The callback is bound to `thisArg` and invoked with three * arguments; (value, index|key, collection). * @@ -3142,7 +3142,7 @@ /** * Iterates over elements of a collection, returning an array of all elements - * the callback returns truthy for. The callback is bound to `thisArg` and + * the callback returns truey for. The callback is bound to `thisArg` and * invoked with three arguments; (value, index|key, collection). * * If a property name is provided for `callback` the created "_.pluck" style @@ -3206,7 +3206,7 @@ /** * Iterates over elements of a collection, returning the first element that - * the callback returns truthy for. The callback is bound to `thisArg` and + * the callback returns truey for. The callback is bound to `thisArg` and * invoked with three arguments; (value, index|key, collection). * * If a property name is provided for `callback` the created "_.pluck" style @@ -3805,7 +3805,7 @@ /** * The opposite of `_.filter` this method returns the elements of a - * collection that the callback does **not** return truthy for. + * collection that the callback does **not** return truey for. * * If a property name is provided for `callback` the created "_.pluck" style * callback will return the property value of the given element. @@ -3932,7 +3932,7 @@ } /** - * Checks if the callback returns a truthy value for **any** element of a + * Checks if the callback returns a truey value for **any** element of a * collection. The function returns as soon as it finds a passing value and * does not iterate over the entire collection. The callback is bound to * `thisArg` and invoked with three arguments; (value, index|key, collection). @@ -4243,7 +4243,7 @@ /** * Gets the first element or first `n` elements of an array. If a callback * is provided elements at the beginning of the array are returned as long - * as the callback returns truthy. The callback is bound to `thisArg` and + * as the callback returns truey. The callback is bound to `thisArg` and * invoked with three arguments; (value, index, array). * * If a property name is provided for `callback` the created "_.pluck" style @@ -4319,7 +4319,7 @@ /** * Flattens a nested array (the nesting can be to any depth). If `isShallow` - * is truthy, the array will only be flattened a single level. If a callback + * is truey, the array will only be flattened a single level. If a callback * is provided each element of the array is passed through the callback before * flattening. The callback is bound to `thisArg` and invoked with three * arguments; (value, index, array). @@ -4409,7 +4409,7 @@ /** * Gets all but the last element or last `n` elements of an array. If a * callback is provided elements at the end of the array are excluded from - * the result as long as the callback returns truthy. The callback is bound + * the result as long as the callback returns truey. The callback is bound * to `thisArg` and invoked with three arguments; (value, index, array). * * If a property name is provided for `callback` the created "_.pluck" style @@ -4542,7 +4542,7 @@ /** * Gets the last element or last `n` elements of an array. If a callback is * provided elements at the end of the array are returned as long as the - * callback returns truthy. The callback is bound to `thisArg` and invoked + * callback returns truey. The callback is bound to `thisArg` and invoked * with three arguments; (value, index, array). * * If a property name is provided for `callback` the created "_.pluck" style @@ -4738,7 +4738,7 @@ } /** - * Removes all elements from an array that the callback returns truthy for + * Removes all elements from an array that the callback returns truey for * and returns an array of removed elements. The callback is bound to `thisArg` * and invoked with three arguments; (value, index, array). * @@ -4790,7 +4790,7 @@ * The opposite of `_.initial` this method gets all but the first element or * first `n` elements of an array. If a callback function is provided elements * at the beginning of the array are excluded from the result as long as the - * callback returns truthy. The callback is bound to `thisArg` and invoked + * callback returns truey. The callback is bound to `thisArg` and invoked * with three arguments; (value, index, array). * * If a property name is provided for `callback` the created "_.pluck" style @@ -5083,8 +5083,8 @@ /*--------------------------------------------------------------------------*/ /** - * Creates a function this is restricted to executing `func` with the `this` - * binding and arguments of the created function, only after it is called `n` times. + * Creates a function that executes `func`, with the `this` binding and + * arguments of the created function, only after being called `n` times. * * @static * @memberOf _ @@ -5095,11 +5095,16 @@ * @returns {Function} Returns the new restricted function. * @example * - * var renderNotes = _.after(notes.length, render); - * _.forEach(notes, function(note) { - * note.asyncSave({ 'success': renderNotes }); + * var saves = ['profile', 'settings']; + * + * var done = _.after(saves.length, function() { + * console.log('Done saving!'); * }); - * // `renderNotes` is run once, after all notes have saved + * + * _.forEach(saves, function(type) { + * asyncSave({ 'type': type, 'complete': done }); + * }); + * // => logs 'Done saving!', after all saves have completed */ function after(n, func) { if (!isFunction(func)) { @@ -6002,7 +6007,7 @@ * is given, else it returns the interpolated text. * @example * - * // using a compiled template + * // using the "interpolate" delimiter to create a compiled template * var compiled = _.template('hello <%= name %>'); * compiled({ 'name': 'moe' }); * // => 'hello moe' @@ -6012,7 +6017,7 @@ * // => '<script>' * * // using the "evaluate" delimiter to generate HTML - * var list = '<% _.forEach(people, function(name) { %>
f(h,y))&&((u||v)&&h.push(y),s.push(g))}return v?(l(h.b),c(h)):u&&l(h),s}function ot(n){return function(t,e,r){var u={};e=X.createCallback(e,r,3),r=-1;var o=t?t.length:0;if(typeof o=="number")for(;++r