_.attempt

_.attempt(func, [args]) source npm package Attempts to invoke func, returning either the result or the caught error object. Any additional arguments are provided to func when it's invoked. Since 3.0.0 Arguments func (Function): The function to attempt. [args] (...*): The arguments to invoke func with. Returns (*): Returns the func result or error object. Example // Avoid throwing errors for invalid selectors. var elements = _.attempt(function(selector) {   return document.querySelectorAl

_.fromPairs

_.fromPairs(pairs) source npm package The inverse of _.toPairs; this method returns an object composed from key-value pairs. Since 4.0.0 Arguments pairs (Array): The key-value pairs. Returns (Object): Returns the new object. Example _.fromPairs([['a', 1], ['b', 2]]); // => { 'a': 1, 'b': 2 }

_.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

_.drop

_.drop(array, [n=1]) source npm package Creates a slice of array with n elements dropped from the beginning. Since 0.5.0 Arguments array (Array): The array to query. [n=1] (number): The number of elements to drop. Returns (Array): Returns the slice of array. Example _.drop([1, 2, 3]); // => [2, 3]   _.drop([1, 2, 3], 2); // => [3]   _.drop([1, 2, 3], 5); // => []   _.drop([1, 2, 3], 0); // => [1, 2, 3]

_.uniqBy

_.uniqBy(array, [iteratee=_.identity]) source npm package This method is like _.uniq except that it accepts iteratee which is invoked for each element in array to generate the criterion by which uniqueness is computed. The order of result values is determined by the order they occur in the array. The iteratee is invoked with one argument:(value). Since 4.0.0 Arguments array (Array): The array to inspect. [iteratee=_.identity] (Function): The iteratee invoked per element. Returns (Array):

_.chunk

_.chunk(array, [size=1]) source npm package Creates an array of elements split into groups the length of size. If array can't be split evenly, the final chunk will be the remaining elements. Since 3.0.0 Arguments array (Array): The array to process. [size=1] (number): The length of each chunk Returns (Array): Returns the new array of chunks. Example _.chunk(['a', 'b', 'c', 'd'], 2); // => [['a', 'b'], ['c', 'd']]   _.chunk(['a', 'b', 'c', 'd'], 3); // => [['a', 'b', 'c'], ['d']]

_.curryRight

_.curryRight(func, [arity=func.length]) source npm package This method is like _.curry except that arguments are applied to func in the manner of _.partialRight instead of _.partial.The _.curryRight.placeholder value, which defaults to _ in monolithic builds, may be used as a placeholder for provided arguments.Note: This method doesn't set the "length" property of curried functions. Since 3.0.0 Arguments func (Function): The function to curry. [arity=func.length] (number): The arity of func

_.deburr

_.deburr([string='']) source npm package Deburrs string by converting Latin-1 Supplement and Latin Extended-A letters to basic Latin letters and removing combining diacritical marks. Since 3.0.0 Arguments [string=''] (string): The string to deburr. Returns (string): Returns the deburred string. Example _.deburr('déjà vu'); // => 'deja vu'

_.forOwn

_.forOwn(object, [iteratee=_.identity]) source npm package Iterates over own enumerable string keyed properties of an object and invokes iteratee for each property. The iteratee is invoked with three arguments: (value, key, object). Iteratee functions may exit iteration early by explicitly returning false. Since 0.3.0 Arguments object (Object): The object to iterate over. [iteratee=_.identity] (Function): The function invoked per iteration. Returns (Object): Returns object. Example functi

_.indexOf

_.indexOf(array, value, [fromIndex=0]) source npm package Gets the index at which the first occurrence of value is found in array using SameValueZero for equality comparisons. If fromIndex is negative, it's used as the offset from the end of array. Since 0.1.0 Arguments array (Array): The array to inspect. value (*): The value to search for. [fromIndex=0] (number): The index to search from. Returns (number): Returns the index of the matched value, else -1. Example _.indexOf([1, 2, 1, 2],