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

_.partialRight

_.partialRight(func, [partials]) source npm package This method is like _.partial except that partially applied arguments are appended to the arguments it receives.The _.partialRight.placeholder value, which defaults to _ in monolithic builds, may be used as a placeholder for partially applied arguments.Note: This method doesn't set the "length" property of partially applied functions. Since 1.0.0 Arguments func (Function): The function to partially apply arguments to. [partials] (...*): Th

_.zipObjectDeep

_.zipObjectDeep([props=[]], [values=[]]) source npm package This method is like _.zipObject except that it supports property paths. Since 4.1.0 Arguments [props=[]] (Array): The property identifiers. [values=[]] (Array): The property values. Returns (Object): Returns the new object. Example _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]); // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }

_.isInteger

_.isInteger(value) source npm package Checks if value is an integer.Note: This method is based on Number.isInteger. Since 4.0.0 Arguments value (*): The value to check. Returns (boolean): Returns true if value is an integer, else false. Example _.isInteger(3); // => true   _.isInteger(Number.MIN_VALUE); // => false   _.isInteger(Infinity); // => false   _.isInteger('3'); // => false

_.forOwnRight

_.forOwnRight(object, [iteratee=_.identity]) source npm package This method is like _.forOwn except that it iterates over properties of object in the opposite order. Since 2.0.0 Arguments object (Object): The object to iterate over. [iteratee=_.identity] (Function): The function invoked per iteration. Returns (Object): Returns object. Example function Foo() {   this.a = 1;   this.b = 2; }   Foo.prototype.c = 3;   _.forOwnRight(new Foo, function(value, key) {   console.log(key); }); // =&g

_.uniqWith

_.uniqWith(array, [comparator]) source npm package This method is like _.uniq except that it accepts comparator which is invoked to compare elements of array. The order of result values is determined by the order they occur in the array.The comparator is invoked with two arguments: (arrVal, othVal). Since 4.0.0 Arguments array (Array): The array to inspect. [comparator] (Function): The comparator invoked per element. Returns (Array): Returns the new duplicate free array. Example var objec

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

_.defer

_.defer(func, [args]) source npm package Defers invoking the func until the current call stack has cleared. Any additional arguments are provided to func when it's invoked. Since 0.1.0 Arguments func (Function): The function to defer. [args] (...*): The arguments to invoke func with. Returns (number): Returns the timer id. Example _.defer(function(text) {   console.log(text); }, 'deferred'); // => Logs 'deferred' after one millisecond.

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

_.pull

_.pull(array, [values]) source npm package Removes all given values from array using SameValueZero for equality comparisons.Note: Unlike _.without, this method mutates array. Use _.remove to remove elements from an array by predicate. Since 2.0.0 Arguments array (Array): The array to modify. [values] (...*): The values to remove. Returns (Array): Returns array. Example var array = ['a', 'b', 'c', 'a', 'b', 'c'];   _.pull(array, 'a', 'c'); console.log(array); // => ['b', 'b']