_.mixin

_.mixin([object=lodash], source, [options={}]) source npm package Adds all own enumerable string keyed function properties of a source object to the destination object. If object is a function, then methods are added to its prototype as well.Note: Use _.runInContext to create a pristine lodash function to avoid conflicts caused by modifying the original. Since 0.1.0 Arguments [object=lodash] (Function|Object): The destination object. source (Object): The object of functions to add. [option

_.replace

_.replace([string=''], pattern, replacement) source npm package Replaces matches for pattern in string with replacement.Note: This method is based on String#replace. Since 4.0.0 Arguments [string=''] (string): The string to modify. pattern (RegExp|string): The pattern to replace. replacement (Function|string): The match replacement. Returns (string): Returns the modified string. Example _.replace('Hi Fred', 'Fred', 'Barney'); // => 'Hi Barney'

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

_.invertBy

_.invertBy(object, [iteratee=_.identity]) source npm package This method is like _.invert except that the inverted object is generated from the results of running each element of object thru iteratee. The corresponding inverted value of each inverted key is an array of keys responsible for generating the inverted value. The iteratee is invoked with one argument: (value). Since 4.1.0 Arguments object (Object): The object to invert. [iteratee=_.identity] (Function): The iteratee invoked per e

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

_.noop

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

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

_.isSymbol

_.isSymbol(value) source npm package Checks if value is classified as a Symbol primitive or object. Since 4.0.0 Arguments value (*): The value to check. Returns (boolean): Returns true if value is a symbol, else false. Example _.isSymbol(Symbol.iterator); // => true   _.isSymbol('abc'); // => 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

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