_.cloneWith

_.cloneWith(value, [customizer]) source npm package This method is like _.clone except that it accepts customizer which is invoked to produce the cloned value. If customizer returns undefined, cloning is handled by the method instead. The customizer is invoked with up to four arguments; (value [, index|key, object, stack]). Since 4.0.0 Arguments value (*): The value to clone. [customizer] (Function): The function to customize cloning. Returns (*): Returns the cloned value. Example functio

_.cloneDeepWith

_.cloneDeepWith(value, [customizer]) source npm package This method is like _.cloneWith except that it recursively clones value. Since 4.0.0 Arguments value (*): The value to recursively clone. [customizer] (Function): The function to customize cloning. Returns (*): Returns the deep cloned value. Example function customizer(value) {   if (_.isElement(value)) {     return value.cloneNode(true);   } }   var el = _.cloneDeepWith(document.body, customizer);   console.log(el === document.bod

_.cloneDeep

_.cloneDeep(value) source npm package This method is like _.clone except that it recursively clones value. Since 1.0.0 Arguments value (*): The value to recursively clone. Returns (*): Returns the deep cloned value. Example var objects = [{ 'a': 1 }, { 'b': 2 }];   var deep = _.cloneDeep(objects); console.log(deep[0] === objects[0]); // => false

_.clone

_.clone(value) source npm package Creates a shallow clone of value.Note: This method is loosely based on the structured clone algorithm and supports cloning arrays, array buffers, booleans, date objects, maps, numbers, Object objects, regexes, sets, strings, symbols, and typed arrays. The own enumerable properties of arguments objects are cloned as plain objects. An empty object is returned for uncloneable values such as error objects, functions, DOM nodes, and WeakMaps. Since 0.1.0 Arguments

_.clamp

_.clamp(number, [lower], upper) source npm package Clamps number within the inclusive lower and upper bounds. Since 4.0.0 Arguments number (number): The number to clamp. [lower] (number): The lower bound. upper (number): The upper bound. Returns (number): Returns the clamped number. Example _.clamp(-10, -5, 5); // => -5   _.clamp(10, -5, 5); // => 5

_.chunk

_.chunk(array, [size=1]) source npm package Creates an array of elements split into groups the length of size. If array can't be split evenly, the final chunk will be the remaining elements. Since 3.0.0 Arguments array (Array): The array to process. [size=1] (number): The length of each chunk Returns (Array): Returns the new array of chunks. Example _.chunk(['a', 'b', 'c', 'd'], 2); // => [['a', 'b'], ['c', 'd']]   _.chunk(['a', 'b', 'c', 'd'], 3); // => [['a', 'b', 'c'], ['d']]

_.chain

_.chain(value) source Creates a lodash wrapper instance that wraps value with explicit method chain sequences enabled. The result of such sequences must be unwrapped with _#value. Since 1.3.0 Arguments value (*): The value to wrap. Returns (Object): Returns the new lodash wrapper instance. Example var users = [   { 'user': 'barney',  'age': 36 },   { 'user': 'fred',    'age': 40 },   { 'user': 'pebbles', 'age': 1 } ];   var youngest = _   .chain(users)   .sortBy('age')   .map(function(o) {

_.ceil

_.ceil(number, [precision=0]) source npm package Computes number rounded up to precision. Since 3.10.0 Arguments number (number): The number to round up. [precision=0] (number): The precision to round up to. Returns (number): Returns the rounded up number. Example _.ceil(4.006); // => 5   _.ceil(6.004, 2); // => 6.01   _.ceil(6040, -2); // => 6100

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

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