_.reject

_.reject(collection, [predicate=_.identity]) source npm package The opposite of _.filter; this method returns the elements of collection that predicate does not return truthy for. Since 0.1.0 Arguments collection (Array|Object): The collection to iterate over. [predicate=_.identity] (Function): The function invoked per iteration. Returns (Array): Returns the new filtered array. Example var users = [   { 'user': 'barney', 'age': 36, 'active': false },   { 'user': 'fred',   'age': 40, 'act

_.reduceRight

_.reduceRight(collection, [iteratee=_.identity], [accumulator]) source npm package This method is like _.reduce except that it iterates over elements of collection from right to left. Since 0.1.0 Arguments collection (Array|Object): The collection to iterate over. [iteratee=_.identity] (Function): The function invoked per iteration. [accumulator] (*): The initial value. Returns (*): Returns the accumulated value. Example var array = [[0, 1], [2, 3], [4, 5]];   _.reduceRight(array, functi

_.reduce

_.reduce(collection, [iteratee=_.identity], [accumulator]) source npm package Reduces collection to a value which is the accumulated result of running each element in collection thru iteratee, where each successive invocation is supplied the return value of the previous. If accumulator is not given, the first element of collection is used as the initial value. The iteratee is invoked with four arguments:(accumulator, value, index|key, collection).Many lodash methods are guarded to work as ite

_.rearg

_.rearg(func, indexes) source npm package Creates a function that invokes func with arguments arranged according to the specified indexes where the argument value at the first index is provided as the first argument, the argument value at the second index is provided as the second argument, and so on. Since 3.0.0 Arguments func (Function): The function to rearrange arguments for. indexes (...(number|number[])): The arranged argument indexes. Returns (Function): Returns the new function. E

_.rangeRight

_.rangeRight([start=0], end, [step=1]) source npm package This method is like _.range except that it populates values in descending order. Since 4.0.0 Arguments [start=0] (number): The start of the range. end (number): The end of the range. [step=1] (number): The value to increment or decrement by. Returns (Array): Returns the range of numbers. Example _.rangeRight(4); // => [3, 2, 1, 0]   _.rangeRight(-4); // => [-3, -2, -1, 0]   _.rangeRight(1, 5); // => [4, 3, 2, 1]   _.range

_.range

_.range([start=0], end, [step=1]) source npm package Creates an array of numbers (positive and/or negative) progressing from start up to, but not including, end. A step of -1 is used if a negative start is specified without an end or step. If end is not specified, it's set to start with start then set to 0.Note: JavaScript follows the IEEE-754 standard for resolving floating-point values which can produce unexpected results. Since 0.1.0 Arguments [start=0] (number): The start of the range.

_.random

_.random([lower=0], [upper=1], [floating]) source npm package Produces a random number between the inclusive lower and upper bounds. If only one argument is provided a number between 0 and the given number is returned. If floating is true, or either lower or upper are floats, a floating-point number is returned instead of an integer.Note: JavaScript follows the IEEE-754 standard for resolving floating-point values which can produce unexpected results. Since 0.7.0 Arguments [lower=0] (number)

_.pullAt

_.pullAt(array, [indexes]) source npm package Removes elements from array corresponding to indexes and returns an array of removed elements.Note: Unlike _.at, this method mutates array. Since 3.0.0 Arguments array (Array): The array to modify. [indexes] (...(number|number[])): The indexes of elements to remove. Returns (Array): Returns the new array of removed elements. Example var array = ['a', 'b', 'c', 'd']; var pulled = _.pullAt(array, [1, 3]);   console.log(array); // => ['a', '

_.pullAllWith

_.pullAllWith(array, values, [comparator]) source npm package This method is like _.pullAll except that it accepts comparator which is invoked to compare elements of array to values. The comparator is invoked with two arguments: (arrVal, othVal).Note: Unlike _.differenceWith, this method mutates array. Since 4.6.0 Arguments array (Array): The array to modify. values (Array): The values to remove. [comparator] (Function): The comparator invoked per element. Returns (Array): Returns array.

_.pullAllBy

_.pullAllBy(array, values, [iteratee=_.identity]) source npm package This method is like _.pullAll except that it accepts iteratee which is invoked for each element of array and values to generate the criterion by which they're compared. The iteratee is invoked with one argument: (value).Note: Unlike _.differenceBy, this method mutates array. Since 4.0.0 Arguments array (Array): The array to modify. values (Array): The values to remove. [iteratee=_.identity] (Function): The iteratee invoke