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

_.wrap

_.wrap(value, [wrapper=identity]) source npm package Creates a function that provides value to wrapper as its first argument. Any additional arguments provided to the function are appended to those provided to the wrapper. The wrapper is invoked with the this binding of the created function. Since 0.1.0 Arguments value (*): The value to wrap. [wrapper=identity] (Function): The wrapper function. Returns (Function): Returns the new function. Example var p = _.wrap(_.escape, function(func, t

_.upperFirst

_.upperFirst([string='']) source npm package Converts the first character of string to upper case. Since 4.0.0 Arguments [string=''] (string): The string to convert. Returns (string): Returns the converted string. Example _.upperFirst('fred'); // => 'Fred'   _.upperFirst('FRED'); // => 'FRED'

_.isMatch

_.isMatch(object, source) source npm package Performs a partial deep comparison between object and source to determine if object contains equivalent property values.Note: This method is equivalent to _.matches when source is partially applied.Partial comparisons will match empty array and empty object source values against any array or object value, respectively. See _.isEqual for a list of supported value comparisons. Since 3.0.0 Arguments object (Object): The object to inspect. source (Ob

_.capitalize

_.capitalize([string='']) source npm package Converts the first character of string to upper case and the remaining to lower case. Since 3.0.0 Arguments [string=''] (string): The string to capitalize. Returns (string): Returns the capitalized string. Example _.capitalize('FRED'); // => 'Fred'

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

_.mapValues

_.mapValues(object, [iteratee=_.identity]) source npm package Creates an object with the same keys as object and values generated by running each own enumerable string keyed property of object thru iteratee. The iteratee is invoked with three arguments:(value, key, object). Since 2.4.0 Arguments object (Object): The object to iterate over. [iteratee=_.identity] (Function): The function invoked per iteration. Returns (Object): Returns the new mapped object. Example var users = {   'fred': 

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

_.sortBy

_.sortBy(collection, [iteratees=[_.identity]]) source npm package Creates an array of elements, sorted in ascending order by the results of running each element in a collection thru each iteratee. This method performs a stable sort, that is, it preserves the original sort order of equal elements. The iteratees are invoked with one argument: (value). Since 0.1.0 Arguments collection (Array|Object): The collection to iterate over. [iteratees=[_.identity]] (...(Function|Function[])): The itera

_.runInContext

_.runInContext([context=root]) source npm package Create a new pristine lodash function using the context object. Since 1.1.0 Arguments [context=root] (Object): The context object. Returns (Function): Returns a new lodash function. Example _.mixin({ 'foo': _.constant('foo') });   var lodash = _.runInContext(); lodash.mixin({ 'bar': lodash.constant('bar') });   _.isFunction(_.foo); // => true _.isFunction(_.bar); // => false   lodash.isFunction(lodash.foo); // => false lodash.isFun