_.initial

_.initial(array) source npm package Gets all but the last element of array. Since 0.1.0 Arguments array (Array): The array to query. Returns (Array): Returns the slice of array. Example _.initial([1, 2, 3]); // => [1, 2]

_.indexOf

_.indexOf(array, value, [fromIndex=0]) source npm package Gets the index at which the first occurrence of value is found in array using SameValueZero for equality comparisons. If fromIndex is negative, it's used as the offset from the end of array. Since 0.1.0 Arguments array (Array): The array to inspect. value (*): The value to search for. [fromIndex=0] (number): The index to search from. Returns (number): Returns the index of the matched value, else -1. Example _.indexOf([1, 2, 1, 2],

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

_.identity

_.identity(value) source npm package This method returns the first argument it receives. Since 0.1.0 Arguments value (*): Any value. Returns (*): Returns value. Example var object = { 'a': 1 };   console.log(_.identity(object) === object); // => true

_.hasIn

_.hasIn(object, path) source npm package Checks if path is a direct or inherited property of object. Since 4.0.0 Arguments object (Object): The object to query. path (Array|string): The path to check. Returns (boolean): Returns true if path exists, else false. Example var object = _.create({ 'a': _.create({ 'b': 2 }) });   _.hasIn(object, 'a'); // => true   _.hasIn(object, 'a.b'); // => true   _.hasIn(object, ['a', 'b']); // => true   _.hasIn(object, 'b'); // => false

_.has

_.has(object, path) source npm package Checks if path is a direct property of object. Since 0.1.0 Arguments object (Object): The object to query. path (Array|string): The path to check. Returns (boolean): Returns true if path exists, else false. Example var object = { 'a': { 'b': 2 } }; var other = _.create({ 'a': _.create({ 'b': 2 }) });   _.has(object, 'a'); // => true   _.has(object, 'a.b'); // => true   _.has(object, ['a', 'b']); // => true   _.has(other, 'a'); // => fals

_.gte

_.gte(value, other) source npm package Checks if value is greater than or equal to other. Since 3.9.0 Arguments value (*): The value to compare. other (*): The other value to compare. Returns (boolean): Returns true if value is greater than or equal to other, else false. Example _.gte(3, 1); // => true   _.gte(3, 3); // => true   _.gte(1, 3); // => false

_.gt

_.gt(value, other) source npm package Checks if value is greater than other. Since 3.9.0 Arguments value (*): The value to compare. other (*): The other value to compare. Returns (boolean): Returns true if value is greater than other, else false. Example _.gt(3, 1); // => true   _.gt(3, 3); // => false   _.gt(1, 3); // => false

_.groupBy

_.groupBy(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 order of grouped values is determined by the order they occur in collection. The corresponding value of each key is an array of elements responsible for generating the key. The iteratee is invoked with one argument: (value). Since 0.1.0 Arguments collection (Array|Object): The collection to iterate over. [itera

_.get

_.get(object, path, [defaultValue]) source npm package Gets the value at path of object. If the resolved value is undefined, the defaultValue is returned in its place. Since 3.7.0 Arguments object (Object): The object to query. path (Array|string): The path of the property to get. [defaultValue] (*): The value returned for undefined resolved values. Returns (*): Returns the resolved value. Example var object = { 'a': [{ 'b': { 'c': 3 } }] };   _.get(object, 'a[0].b.c'); // => 3   _.ge