_.flatten

_.flatten(array) source npm package Flattens array a single level deep. Since 0.1.0 Arguments array (Array): The array to flatten. Returns (Array): Returns the new flattened array. Example _.flatten([1, [2, [3, [4]], 5]]); // => [1, 2, [3, [4]], 5]

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

_.isObjectLike

_.isObjectLike(value) source npm package Checks if value is object-like. A value is object-like if it's not null and has a typeof result of "object". Since 4.0.0 Arguments value (*): The value to check. Returns (boolean): Returns true if value is object-like, else false. Example _.isObjectLike({}); // => true   _.isObjectLike([1, 2, 3]); // => true   _.isObjectLike(_.noop); // => false   _.isObjectLike(null); // => false

_.isMatchWith

_.isMatchWith(object, source, [customizer]) source npm package This method is like _.isMatch except that it accepts customizer which is invoked to compare values. If customizer returns undefined, comparisons are handled by the method instead. The customizer is invoked with five arguments: (objValue, srcValue, index|key, object, source). Since 4.0.0 Arguments object (Object): The object to inspect. source (Object): The object of property values to match. [customizer] (Function): The functio

_.castArray

_.castArray(value) source npm package Casts value as an array if it's not one. Since 4.4.0 Arguments value (*): The value to inspect. Returns (Array): Returns the cast array. Example _.castArray(1); // => [1]   _.castArray({ 'a': 1 }); // => [{ 'a': 1 }]   _.castArray('abc'); // => ['abc']   _.castArray(null); // => [null]   _.castArray(undefined); // => [undefined]   _.castArray(); // => []   var array = [1, 2, 3]; console.log(_.castArray(array) === array); // => tru

_.noop

_.noop() source npm package This method returns undefined. Since 2.3.0 Example _.times(2, _.noop); // => [undefined, undefined]

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

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

_.invoke

_.invoke(object, path, [args]) source npm package Invokes the method at path of object. Since 4.0.0 Arguments object (Object): The object to query. path (Array|string): The path of the method to invoke. [args] (...*): The arguments to invoke the method with. Returns (*): Returns the result of the invoked method. Example var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] };   _.invoke(object, 'a[0].b.c.slice', 1, 3); // => [2, 3]

_.isMap

_.isMap(value) source npm package Checks if value is classified as a Map object. Since 4.3.0 Arguments value (*): The value to check. Returns (boolean): Returns true if value is a map, else false. Example _.isMap(new Map); // => true   _.isMap(new WeakMap); // => false