_.curryRight

_.curryRight(func, [arity=func.length]) source npm package This method is like _.curry except that arguments are applied to func in the manner of _.partialRight instead of _.partial.The _.curryRight.placeholder value, which defaults to _ in monolithic builds, may be used as a placeholder for provided arguments.Note: This method doesn't set the "length" property of curried functions. Since 3.0.0 Arguments func (Function): The function to curry. [arity=func.length] (number): The arity of func

_.curry

_.curry(func, [arity=func.length]) source npm package Creates a function that accepts arguments of func and either invokes func returning its result, if at least arity number of arguments have been provided, or returns a function that accepts the remaining func arguments, and so on. The arity of func may be specified if func.length is not sufficient.The _.curry.placeholder value, which defaults to _ in monolithic builds, may be used as a placeholder for provided arguments.Note: This method do

_.create

_.create(prototype, [properties]) source npm package Creates an object that inherits from the prototype object. If a properties object is given, its own enumerable string keyed properties are assigned to the created object. Since 2.3.0 Arguments prototype (Object): The object to inherit from. [properties] (Object): The properties to assign to the object. Returns (Object): Returns the new object. Example function Shape() {   this.x = 0;   this.y = 0; }   function Circle() {   Shape.call(t

_.countBy

_.countBy(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 corresponding value of each key is the number of times the key was returned by iteratee. The iteratee is invoked with one argument: (value). Since 0.5.0 Arguments collection (Array|Object): The collection to iterate over. [iteratee=_.identity] (Function): The iteratee to transform keys. Returns (Object): Retu

_.constant

_.constant(value) source npm package Creates a function that returns value. Since 2.4.0 Arguments value (*): The value to return from the new function. Returns (Function): Returns the new constant function. Example var objects = _.times(2, _.constant({ 'a': 1 }));   console.log(objects); // => [{ 'a': 1 }, { 'a': 1 }]   console.log(objects[0] === objects[1]); // => true

_.conformsTo

_.conformsTo(object, source) source npm package Checks if object conforms to source by invoking the predicate properties of source with the corresponding property values of object.Note: This method is equivalent to _.conforms when source is partially applied. Since 4.14.0 Arguments object (Object): The object to inspect. source (Object): The object of property predicates to conform to. Returns (boolean): Returns true if object conforms, else false. Example var object = { 'a': 1, 'b': 2 };

_.conforms

_.conforms(source) source npm package Creates a function that invokes the predicate properties of source with the corresponding property values of a given object, returning true if all predicates return truthy, else false.Note: The created function is equivalent to _.conformsTo with source partially applied. Since 4.0.0 Arguments source (Object): The object of property predicates to conform to. Returns (Function): Returns the new spec function. Example var objects = [   { 'a': 2, 'b': 1 },

_.cond

_.cond(pairs) source npm package Creates a function that iterates over pairs and invokes the corresponding function of the first predicate to return truthy. The predicate-function pairs are invoked with the this binding and arguments of the created function. Since 4.0.0 Arguments pairs (Array): The predicate-function pairs. Returns (Function): Returns the new composite function. Example var func = _.cond([   [_.matches({ 'a': 1 }),           _.constant('matches A')],   [_.conforms({ 'b': _

_.concat

_.concat(array, [values]) source npm package Creates a new array concatenating array with any additional arrays and/or values. Since 4.0.0 Arguments array (Array): The array to concatenate. [values] (...*): The values to concatenate. Returns (Array): Returns the new concatenated array. Example var array = [1]; var other = _.concat(array, 2, [3], [[4]]);   console.log(other); // => [1, 2, 3, [4]]   console.log(array); // => [1]

_.compact

_.compact(array) source npm package Creates an array with all falsey values removed. The values false, null, 0, "", undefined, and NaN are falsey. Since 0.1.0 Arguments array (Array): The array to compact. Returns (Array): Returns the new array of filtered values. Example _.compact([0, 1, false, 2, '', 3]); // => [1, 2, 3]