_.every

_.every(collection, [predicate=_.identity]) source npm package Checks if predicate returns truthy for all elements of collection. Iteration is stopped once predicate returns falsey. The predicate is invoked with three arguments: (value, index|key, collection).Note: This method returns true for empty collections because everything is true of elements of empty collections. Since 0.1.0 Arguments collection (Array|Object): The collection to iterate over. [predicate=_.identity] (Function): The f

_.extend

_.assignIn(object, [sources]) source npm package This method is like _.assign except that it iterates over own and inherited source properties.Note: This method mutates object. Since 4.0.0 Aliases _.extend Arguments object (Object): The destination object. [sources] (...Object): The source objects. Returns (Object): Returns object. Example function Foo() {   this.a = 1; }   function Bar() {   this.c = 3; }   Foo.prototype.b = 2; Bar.prototype.d = 4;   _.assignIn({ 'a': 0 }, new Foo, new 

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

_.spread

_.spread(func, [start=0]) source npm package Creates a function that invokes func with the this binding of the create function and an array of arguments much like Function#apply.Note: This method is based on the spread operator. Since 3.2.0 Arguments func (Function): The function to spread arguments over. [start=0] (number): The start position of the spread. Returns (Function): Returns the new function. Example var say = _.spread(function(who, what) {   return who + ' says ' + what; });  

_.keyBy

_.keyBy(collection, [iteratee=_.identity]) source npm package Creates an object composed of keys generated from the results of running each element of collection thru iteratee. The corresponding value of each key is the last element responsible for generating the key. The iteratee is invoked with one argument: (value). Since 4.0.0 Arguments collection (Array|Object): The collection to iterate over. [iteratee=_.identity] (Function): The iteratee to transform keys. Returns (Object): Returns

_.mapValues

_.mapValues(object, [iteratee=_.identity]) source npm package Creates an object with the same keys as object and values generated by running each own enumerable string keyed property of object thru iteratee. The iteratee is invoked with three arguments:(value, key, object). Since 2.4.0 Arguments object (Object): The object to iterate over. [iteratee=_.identity] (Function): The function invoked per iteration. Returns (Object): Returns the new mapped object. Example var users = {   'fred': 

_.toInteger

_.toInteger(value) source npm package Converts value to an integer.Note: This method is loosely based on ToInteger. Since 4.0.0 Arguments value (*): The value to convert. Returns (number): Returns the converted integer. Example _.toInteger(3.2); // => 3   _.toInteger(Number.MIN_VALUE); // => 0   _.toInteger(Infinity); // => 1.7976931348623157e+308   _.toInteger('3.2'); // => 3

_.ary

_.ary(func, [n=func.length]) source npm package Creates a function that invokes func, with up to n arguments, ignoring any additional arguments. Since 3.0.0 Arguments func (Function): The function to cap arguments for. [n=func.length] (number): The arity cap. Returns (Function): Returns the new capped function. Example _.map(['6', '8', '10'], _.ary(parseInt, 1)); // => [6, 8, 10]

_.includes

_.includes(collection, value, [fromIndex=0]) source npm package Checks if value is in collection. If collection is a string, it's checked for a substring of value, otherwise SameValueZero is used for equality comparisons. If fromIndex is negative, it's used as the offset from the end of collection. Since 0.1.0 Arguments collection (Array|Object|string): The collection to inspect. value (*): The value to search for. [fromIndex=0] (number): The index to search from. Returns (boolean): Retu

_.size

_.size(collection) source npm package Gets the size of collection by returning its length for array-like values or the number of own enumerable string keyed properties for objects. Since 0.1.0 Arguments collection (Array|Object|string): The collection to inspect. Returns (number): Returns the collection size. Example _.size([1, 2, 3]); // => 3   _.size({ 'a': 1, 'b': 2 }); // => 2   _.size('pebbles'); // => 7