_.keys

_.keys(object) source npm package Creates an array of the own enumerable property names of object.Note: Non-object values are coerced to objects. See the ES spec for more details. Since 0.1.0 Arguments object (Object): The object to query. Returns (Array): Returns the array of property names. Example function Foo() {   this.a = 1;   this.b = 2; }   Foo.prototype.c = 3;   _.keys(new Foo); // => ['a', 'b'] (iteration order is not guaranteed)   _.keys('hi'); // => ['0', '1']

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

_.pullAllWith

_.pullAllWith(array, values, [comparator]) source npm package This method is like _.pullAll except that it accepts comparator which is invoked to compare elements of array to values. The comparator is invoked with two arguments: (arrVal, othVal).Note: Unlike _.differenceWith, this method mutates array. Since 4.6.0 Arguments array (Array): The array to modify. values (Array): The values to remove. [comparator] (Function): The comparator invoked per element. Returns (Array): Returns array.

_.update

_.update(object, path, updater) source npm package This method is like _.set except that accepts updater to produce the value to set. Use _.updateWith to customize path creation. The updater is invoked with one argument: (value).Note: This method mutates object. Since 4.6.0 Arguments object (Object): The object to modify. path (Array|string): The path of the property to set. updater (Function): The function to produce the updated value. Returns (Object): Returns object. Example var objec

_.after

_.after(n, func) source npm package The opposite of _.before; this method creates a function that invokes func once it's called n or more times. Since 0.1.0 Arguments n (number): The number of calls before func is invoked. func (Function): The function to restrict. Returns (Function): Returns the new restricted function. Example var saves = ['profile', 'settings'];   var done = _.after(saves.length, function() {   console.log('done saving!'); });   _.forEach(saves, function(type) {   asy

_.lt

_.lt(value, other) source npm package Checks if value is less 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 less than other, else false. Example _.lt(1, 3); // => true   _.lt(3, 3); // => false   _.lt(3, 1); // => false

_.values

_.values(object) source npm package Creates an array of the own enumerable string keyed property values of object.Note: Non-object values are coerced to objects. Since 0.1.0 Arguments object (Object): The object to query. Returns (Array): Returns the array of property values. Example function Foo() {   this.a = 1;   this.b = 2; }   Foo.prototype.c = 3;   _.values(new Foo); // => [1, 2] (iteration order is not guaranteed)   _.values('hi'); // => ['h', 'i']

_.bindAll

_.bindAll(object, methodNames) source npm package Binds methods of an object to the object itself, overwriting the existing method.Note: This method doesn't set the "length" property of bound functions. Since 0.1.0 Arguments object (Object): The object to bind and assign the bound methods to. methodNames (...(string|string[])): The object method names to bind. Returns (Object): Returns object. Example var view = {   'label': 'docs',   'click': function() {     console.log('clicked ' + th

_.differenceBy

_.differenceBy(array, [values], [iteratee=_.identity]) source npm package This method is like _.difference except that it accepts iteratee which is invoked for each element of array and values to generate the criterion by which they're compared. The order and references of result values are determined by the first array. The iteratee is invoked with one argument:(value).Note: Unlike _.pullAllBy, this method returns a new array. Since 4.0.0 Arguments array (Array): The array to inspect. [val

_.bind

_.bind(func, thisArg, [partials]) source npm package Creates a function that invokes func with the this binding of thisArg and partials prepended to the arguments it receives.The _.bind.placeholder value, which defaults to _ in monolithic builds, may be used as a placeholder for partially applied arguments.Note: Unlike native Function#bind, this method doesn't set the "length" property of bound functions. Since 0.1.0 Arguments func (Function): The function to bind. thisArg (*): The this bin