_.assign

_.assign(object, [sources]) source npm package Assigns own enumerable string keyed properties of source objects to the destination object. Source objects are applied from left to right. Subsequent sources overwrite property assignments of previous sources.Note: This method mutates object and is loosely based on Object.assign. Since 0.10.0 Arguments object (Object): The destination object. [sources] (...Object): The source objects. Returns (Object): Returns object. Example function Foo() {

_.update

_.update(object, path, updater) source npm package This method is like _.set except that accepts updater to produce the value to set. Use _.updateWith to customize path creation. The updater is invoked with one argument: (value).Note: This method mutates object. Since 4.6.0 Arguments object (Object): The object to modify. path (Array|string): The path of the property to set. updater (Function): The function to produce the updated value. Returns (Object): Returns object. Example var objec

_.cloneWith

_.cloneWith(value, [customizer]) source npm package This method is like _.clone except that it accepts customizer which is invoked to produce the cloned value. If customizer returns undefined, cloning is handled by the method instead. The customizer is invoked with up to four arguments; (value [, index|key, object, stack]). Since 4.0.0 Arguments value (*): The value to clone. [customizer] (Function): The function to customize cloning. Returns (*): Returns the cloned value. Example functio

_.keys

_.keys(object) source npm package Creates an array of the own enumerable property names of object.Note: Non-object values are coerced to objects. See the ES spec for more details. Since 0.1.0 Arguments object (Object): The object to query. Returns (Array): Returns the array of property names. Example function Foo() {   this.a = 1;   this.b = 2; }   Foo.prototype.c = 3;   _.keys(new Foo); // => ['a', 'b'] (iteration order is not guaranteed)   _.keys('hi'); // => ['0', '1']

_.some

_.some(collection, [predicate=_.identity]) source npm package Checks if predicate returns truthy for any element of collection. Iteration is stopped once predicate returns truthy. The predicate is invoked with three arguments: (value, index|key, collection). Since 0.1.0 Arguments collection (Array|Object): The collection to iterate over. [predicate=_.identity] (Function): The function invoked per iteration. Returns (boolean): Returns true if any element passes the predicate check, else fa

_.conformsTo

_.conformsTo(object, source) source npm package Checks if object conforms to source by invoking the predicate properties of source with the corresponding property values of object.Note: This method is equivalent to _.conforms when source is partially applied. Since 4.14.0 Arguments object (Object): The object to inspect. source (Object): The object of property predicates to conform to. Returns (boolean): Returns true if object conforms, else false. Example var object = { 'a': 1, 'b': 2 };

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

_.unionWith

_.unionWith([arrays], [comparator]) source npm package This method is like _.union except that it accepts comparator which is invoked to compare elements of arrays. Result values are chosen from the first array in which the value occurs. The comparator is invoked with two arguments: (arrVal, othVal). Since 4.0.0 Arguments [arrays] (...Array): The arrays to inspect. [comparator] (Function): The comparator invoked per element. Returns (Array): Returns the new array of combined values. Examp

_.union

_.union([arrays]) source npm package Creates an array of unique values, in order, from all given arrays using SameValueZero for equality comparisons. Since 0.1.0 Arguments [arrays] (...Array): The arrays to inspect. Returns (Array): Returns the new array of combined values. Example _.union([2], [1, 2]); // => [2, 1]

_.clamp

_.clamp(number, [lower], upper) source npm package Clamps number within the inclusive lower and upper bounds. Since 4.0.0 Arguments number (number): The number to clamp. [lower] (number): The lower bound. upper (number): The upper bound. Returns (number): Returns the clamped number. Example _.clamp(-10, -5, 5); // => -5   _.clamp(10, -5, 5); // => 5