_.isSafeInteger

_.isSafeInteger(value) source npm package Checks if value is a safe integer. An integer is safe if it's an IEEE-754 double precision number which isn't the result of a rounded unsafe integer.Note: This method is based on Number.isSafeInteger. Since 4.0.0 Arguments value (*): The value to check. Returns (boolean): Returns true if value is a safe integer, else false. Example _.isSafeInteger(3); // => true   _.isSafeInteger(Number.MIN_VALUE); // => false   _.isSafeInteger(Infinity); // =

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

_.unionWith

_.unionWith([arrays], [comparator]) source npm package This method is like _.union except that it accepts comparator which is invoked to compare elements of arrays. Result values are chosen from the first array in which the value occurs. The comparator is invoked with two arguments: (arrVal, othVal). Since 4.0.0 Arguments [arrays] (...Array): The arrays to inspect. [comparator] (Function): The comparator invoked per element. Returns (Array): Returns the new array of combined values. Examp

_.xor

_.xor([arrays]) source npm package Creates an array of unique values that is the symmetric difference of the given arrays. The order of result values is determined by the order they occur in the arrays. Since 2.4.0 Arguments [arrays] (...Array): The arrays to inspect. Returns (Array): Returns the new array of filtered values. Example _.xor([2, 1], [2, 3]); // => [1, 3]

_.zip

_.zip([arrays]) source npm package Creates an array of grouped elements, the first of which contains the first elements of the given arrays, the second of which contains the second elements of the given arrays, and so on. Since 0.1.0 Arguments [arrays] (...Array): The arrays to process. Returns (Array): Returns the new array of grouped elements. Example _.zip(['a', 'b'], [1, 2], [true, false]); // => [['a', 1, true], ['b', 2, false]]

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

_.takeRight

_.takeRight(array, [n=1]) source npm package Creates a slice of array with n elements taken from the end. Since 3.0.0 Arguments array (Array): The array to query. [n=1] (number): The number of elements to take. Returns (Array): Returns the slice of array. Example _.takeRight([1, 2, 3]); // => [3]   _.takeRight([1, 2, 3], 2); // => [2, 3]   _.takeRight([1, 2, 3], 5); // => [1, 2, 3]   _.takeRight([1, 2, 3], 0); // => []

_.updateWith

_.updateWith(object, path, updater, [customizer]) source npm package This method is like _.update except that it accepts customizer which is invoked to produce the objects of path. If customizer returns undefined path creation is handled by the method instead. The customizer is invoked with three arguments: (nsValue, key, nsObject).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 (Fu

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

_.gt

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