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

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

_.uniq

_.uniq(array) source npm package Creates a duplicate-free version of an array, using SameValueZero for equality comparisons, in which only the first occurrence of each element is kept. The order of result values is determined by the order they occur in the array. Since 0.1.0 Arguments array (Array): The array to inspect. Returns (Array): Returns the new duplicate free array. Example _.uniq([2, 1, 2]); // => [2, 1]

_.clone

_.clone(value) source npm package Creates a shallow clone of value.Note: This method is loosely based on the structured clone algorithm and supports cloning arrays, array buffers, booleans, date objects, maps, numbers, Object objects, regexes, sets, strings, symbols, and typed arrays. The own enumerable properties of arguments objects are cloned as plain objects. An empty object is returned for uncloneable values such as error objects, functions, DOM nodes, and WeakMaps. Since 0.1.0 Arguments

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

_.sample

_.sample(collection) source npm package Gets a random element from collection. Since 2.0.0 Arguments collection (Array|Object): The collection to sample. Returns (*): Returns the random element. Example _.sample([1, 2, 3, 4]); // => 2

_.prototype.valueOf

_.prototype.value() source Executes the chain sequence to resolve the unwrapped value. Since 0.1.0 Aliases _.prototype.toJSON, _.prototype.valueOf Returns (*): Returns the resolved unwrapped value. Example _([1, 2, 3]).value(); // => [1, 2, 3]

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

_.sortedUniqBy

_.sortedUniqBy(array, [iteratee]) source npm package This method is like _.uniqBy except that it's designed and optimized for sorted arrays. Since 4.0.0 Arguments array (Array): The array to inspect. [iteratee] (Function): The iteratee invoked per element. Returns (Array): Returns the new duplicate free array. Example _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor); // => [1.1, 2.3]

_.unionBy

_.unionBy([arrays], [iteratee=_.identity]) source npm package This method is like _.union except that it accepts iteratee which is invoked for each element of each arrays to generate the criterion by which uniqueness is computed. Result values are chosen from the first array in which the value occurs. The iteratee is invoked with one argument:(value). Since 4.0.0 Arguments [arrays] (...Array): The arrays to inspect. [iteratee=_.identity] (Function): The iteratee invoked per element. Retur