_.findLast

_.findLast(collection, [predicate=_.identity], [fromIndex=collection.length-1]) source npm package This method is like _.find except that it iterates over elements of collection from right to left. Since 2.0.0 Arguments collection (Array|Object): The collection to inspect. [predicate=_.identity] (Function): The function invoked per iteration. [fromIndex=collection.length-1] (number): The index to search from. Returns (*): Returns the matched element, else undefined. Example _.findLast([1

_.findKey

_.findKey(object, [predicate=_.identity]) source npm package This method is like _.find except that it returns the key of the first element predicate returns truthy for instead of the element itself. Since 1.1.0 Arguments object (Object): The object to inspect. [predicate=_.identity] (Function): The function invoked per iteration. Returns (*): Returns the key of the matched element, else undefined. Example var users = {   'barney':  { 'age': 36, 'active': true },   'fred':    { 'age': 40

_.findIndex

_.findIndex(array, [predicate=_.identity], [fromIndex=0]) source npm package This method is like _.find except that it returns the index of the first element predicate returns truthy for instead of the element itself. Since 1.1.0 Arguments array (Array): The array to inspect. [predicate=_.identity] (Function): The function invoked per iteration. [fromIndex=0] (number): The index to search from. Returns (number): Returns the index of the found element, else -1. Example var users = [   { '

_.find

_.find(collection, [predicate=_.identity], [fromIndex=0]) source npm package Iterates over elements of collection, returning the first element predicate returns truthy for. The predicate is invoked with three arguments: (value, index|key, collection). Since 0.1.0 Arguments collection (Array|Object): The collection to inspect. [predicate=_.identity] (Function): The function invoked per iteration. [fromIndex=0] (number): The index to search from. Returns (*): Returns the matched element, e

_.filter

_.filter(collection, [predicate=_.identity]) source npm package Iterates over elements of collection, returning an array of all elements predicate returns truthy for. The predicate is invoked with three arguments: (value, index|key, collection).Note: Unlike _.remove, this method returns a new array. Since 0.1.0 Arguments collection (Array|Object): The collection to iterate over. [predicate=_.identity] (Function): The function invoked per iteration. Returns (Array): Returns the new filtere

_.fill

_.fill(array, value, [start=0], [end=array.length]) source npm package Fills elements of array with value from start up to, but not including, end.Note: This method mutates array. Since 3.2.0 Arguments array (Array): The array to fill. value (*): The value to fill array with. [start=0] (number): The start position. [end=array.length] (number): The end position. Returns (Array): Returns array. Example var array = [1, 2, 3];   _.fill(array, 'a'); console.log(array); // => ['a', 'a', '

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

_.escapeRegExp

_.escapeRegExp([string='']) source npm package Escapes the RegExp special characters "^", "$", "", ".", "*", "+", "?", "(", ")", "[", "]", "{", "}", and "|" in string. Since 3.0.0 Arguments [string=''] (string): The string to escape. Returns (string): Returns the escaped string. Example _.escapeRegExp('[lodash](https://lodash.com/)'); // => '\[lodash\]\(https://lodash\.com/\)'

_.escape

_.escape([string='']) source npm package Converts the characters "&", "<", ">", '"', and "'" in string to their corresponding HTML entities.Note: No other characters are escaped. To escape additional characters use a third-party library like he.Though the ">" character is escaped for symmetry, characters like ">" and "/" don't need escaping in HTML and have no special meaning unless they're part of a tag or unquoted attribute value. See Mathias Bynens's article (under "semi-re

_.eq

_.eq(value, other) source npm package Performs a SameValueZero comparison between two values to determine if they are equivalent. Since 4.0.0 Arguments value (*): The value to compare. other (*): The other value to compare. Returns (boolean): Returns true if the values are equivalent, else false. Example var object = { 'a': 1 }; var other = { 'a': 1 };   _.eq(object, object); // => true   _.eq(object, other); // => false   _.eq('a', 'a'); // => true   _.eq('a', Object('a')); //