_.toPairs

_.toPairs(object) source npm package Creates an array of own enumerable string keyed-value pairs for object which can be consumed by _.fromPairs. If object is a map or set, its entries are returned. Since 4.0.0 Aliases _.entries Arguments object (Object): The object to query. Returns (Array): Returns the key-value pairs. Example function Foo() {   this.a = 1;   this.b = 2; }   Foo.prototype.c = 3;   _.toPairs(new Foo); // => [['a', 1], ['b', 2]] (iteration order is not guaranteed)

_.keysIn

_.keysIn(object) source npm package Creates an array of the own and inherited enumerable property names of object.Note: Non-object values are coerced to objects. Since 3.0.0 Arguments object (Object): The object to query. Returns (Array): Returns the array of property names. Example function Foo() {   this.a = 1;   this.b = 2; }   Foo.prototype.c = 3;   _.keysIn(new Foo); // => ['a', 'b', 'c'] (iteration order is not guaranteed)

_.at

_.at(object, [paths]) source npm package Creates an array of values corresponding to paths of object. Since 1.0.0 Arguments object (Object): The object to iterate over. [paths] (...(string|string[])): The property paths to pick. Returns (Array): Returns the picked values. Example var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };   _.at(object, ['a[0].b.c', 'a[1]']); // => [3, 4]

_.wrap

_.wrap(value, [wrapper=identity]) source npm package Creates a function that provides value to wrapper as its first argument. Any additional arguments provided to the function are appended to those provided to the wrapper. The wrapper is invoked with the this binding of the created function. Since 0.1.0 Arguments value (*): The value to wrap. [wrapper=identity] (Function): The wrapper function. Returns (Function): Returns the new function. Example var p = _.wrap(_.escape, function(func, t

_.xorWith

_.xorWith([arrays], [comparator]) source npm package This method is like _.xor except that it accepts comparator which is invoked to compare elements of arrays. The order of result values is determined by the order they occur in the arrays. 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 filtered values. Ex

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

_.intersection

_.intersection([arrays]) source npm package Creates an array of unique values that are included in all given arrays using SameValueZero for equality comparisons. The order and references of result values are determined by the first array. Since 0.1.0 Arguments [arrays] (...Array): The arrays to inspect. Returns (Array): Returns the new array of intersecting values. Example _.intersection([2, 1], [2, 3]); // => [2]

_.flatMap

_.flatMap(collection, [iteratee=_.identity]) source npm package Creates a flattened array of values by running each element in collection thru iteratee and flattening the mapped results. The iteratee is invoked with three arguments: (value, index|key, collection). Since 4.0.0 Arguments collection (Array|Object): The collection to iterate over. [iteratee=_.identity] (Function): The function invoked per iteration. Returns (Array): Returns the new flattened array. Example function duplicate(

_.remove

_.remove(array, [predicate=_.identity]) source npm package Removes all elements from array that predicate returns truthy for and returns an array of the removed elements. The predicate is invoked with three arguments: (value, index, array).Note: Unlike _.filter, this method mutates array. Use _.pull to pull elements from an array by value. Since 2.0.0 Arguments array (Array): The array to modify. [predicate=_.identity] (Function): The function invoked per iteration. Returns (Array): Retur

_.mean

_.mean(array) source npm package Computes the mean of the values in array. Since 4.0.0 Arguments array (Array): The array to iterate over. Returns (number): Returns the mean. Example _.mean([4, 2, 8, 6]); // => 5