_.pad

_.pad([string=''], [length=0], [chars=' ']) source npm package Pads string on the left and right sides if it's shorter than length. Padding characters are truncated if they can't be evenly divided by length. Since 3.0.0 Arguments [string=''] (string): The string to pad. [length=0] (number): The padding length. [chars=' '] (string): The string used as padding. Returns (string): Returns the padded string. Example _.pad('abc', 8); // => '  abc   '   _.pad('abc', 8, '_-'); // => '_-abc

_.overSome

_.overSome([predicates=[_.identity]]) source npm package Creates a function that checks if any of the predicates return truthy when invoked with the arguments it receives. Since 4.0.0 Arguments [predicates=[_.identity]] (...(Function|Function[])): The predicates to check. Returns (Function): Returns the new function. Example var func = _.overSome([Boolean, isFinite]);   func('1'); // => true   func(null); // => true   func(NaN); // => false

_.overEvery

_.overEvery([predicates=[_.identity]]) source npm package Creates a function that checks if all of the predicates return truthy when invoked with the arguments it receives. Since 4.0.0 Arguments [predicates=[_.identity]] (...(Function|Function[])): The predicates to check. Returns (Function): Returns the new function. Example var func = _.overEvery([Boolean, isFinite]);   func('1'); // => true   func(null); // => false   func(NaN); // => false

_.overArgs

_.overArgs(func, [transforms=[_.identity]]) source npm package Creates a function that invokes func with its arguments transformed. Since 4.0.0 Arguments func (Function): The function to wrap. [transforms=[_.identity]] (...(Function|Function[])): The argument transforms. Returns (Function): Returns the new function. Example function doubled(n) {   return n * 2; }   function square(n) {   return n * n; }   var func = _.overArgs(function(x, y) {   return [x, y]; }, [square, doubled]);  

_.over

_.over([iteratees=[_.identity]]) source npm package Creates a function that invokes iteratees with the arguments it receives and returns their results. Since 4.0.0 Arguments [iteratees=[_.identity]] (...(Function|Function[])): The iteratees to invoke. Returns (Function): Returns the new function. Example var func = _.over([Math.max, Math.min]);   func(1, 2, 3, 4); // => [4, 1]

_.orderBy

_.orderBy(collection, [iteratees=[_.identity]], [orders]) source npm package This method is like _.sortBy except that it allows specifying the sort orders of the iteratees to sort by. If orders is unspecified, all values are sorted in ascending order. Otherwise, specify an order of "desc" for descending or "asc" for ascending sort order of corresponding values. Since 4.0.0 Arguments collection (Array|Object): The collection to iterate over. [iteratees=[_.identity]] (Array[]|Function[]|Objec

_.once

_.once(func) source npm package Creates a function that is restricted to invoking func once. Repeat calls to the function return the value of the first invocation. The func is invoked with the this binding and arguments of the created function. Since 0.1.0 Arguments func (Function): The function to restrict. Returns (Function): Returns the new restricted function. Example var initialize = _.once(createApplication); initialize(); initialize(); // => `createApplication` is invoked once

_.omitBy

_.omitBy(object, [predicate=_.identity]) source npm package The opposite of _.pickBy; this method creates an object composed of the own and inherited enumerable string keyed properties of object that predicate doesn't return truthy for. The predicate is invoked with two arguments: (value, key). Since 4.0.0 Arguments object (Object): The source object. [predicate=_.identity] (Function): The function invoked per property. Returns (Object): Returns the new object. Example var object = { 'a':

_.omit

_.omit(object, [paths]) source npm package The opposite of _.pick; this method creates an object composed of the own and inherited enumerable property paths of object that are not omitted.Note: This method is considerably slower than _.pick. Since 0.1.0 Arguments object (Object): The source object. [paths] (...(string|string[])): The property paths to omit. Returns (Object): Returns the new object. Example var object = { 'a': 1, 'b': '2', 'c': 3 };   _.omit(object, ['a', 'c']); // => {

_.nthArg

_.nthArg([n=0]) source npm package Creates a function that gets the argument at index n. If n is negative, the nth argument from the end is returned. Since 4.0.0 Arguments [n=0] (number): The index of the argument to return. Returns (Function): Returns the new pass-thru function. Example var func = _.nthArg(1); func('a', 'b', 'c', 'd'); // => 'b'   var func = _.nthArg(-2); func('a', 'b', 'c', 'd'); // => 'c'