_.toPairsIn

_.toPairsIn(object) source npm package Creates an array of own and inherited 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 _.entriesIn 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;   _.toPairsIn(new Foo); // => [['a', 1], ['b', 2], ['c', 3]] (iteration o

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

_.endsWith

_.endsWith([string=''], [target], [position=string.length]) source npm package Checks if string ends with the given target string. Since 3.0.0 Arguments [string=''] (string): The string to inspect. [target] (string): The string to search for. [position=string.length] (number): The position to search up to. Returns (boolean): Returns true if string ends with target, else false. Example _.endsWith('abc', 'c'); // => true   _.endsWith('abc', 'b'); // => false   _.endsWith('abc', 'b', 

_.forEachRight

_.forEachRight(collection, [iteratee=_.identity]) source npm package This method is like _.forEach except that it iterates over elements of collection from right to left. Since 2.0.0 Aliases _.eachRight Arguments collection (Array|Object): The collection to iterate over. [iteratee=_.identity] (Function): The function invoked per iteration. Returns (*): Returns collection. Example _.forEachRight([1, 2], function(value) {   console.log(value); }); // => Logs `2` then `1`.

_.forEach

_.forEach(collection, [iteratee=_.identity]) source npm package Iterates over elements of collection and invokes iteratee for each element. The iteratee is invoked with three arguments: (value, index|key, collection). Iteratee functions may exit iteration early by explicitly returning false.Note: As with other "Collections" methods, objects with a "length" property are iterated like arrays. To avoid this behavior use _.forIn or _.forOwn for object iteration. Since 0.1.0 Aliases _.each Argumen

_.dropWhile

_.dropWhile(array, [predicate=_.identity]) source npm package Creates a slice of array excluding elements dropped from the beginning. Elements are dropped until predicate returns falsey. The predicate is invoked with three arguments: (value, index, array). Since 3.0.0 Arguments array (Array): The array to query. [predicate=_.identity] (Function): The function invoked per iteration. Returns (Array): Returns the slice of array. Example var users = [   { 'user': 'barney',  'active': false },

_.dropRightWhile

_.dropRightWhile(array, [predicate=_.identity]) source npm package Creates a slice of array excluding elements dropped from the end. Elements are dropped until predicate returns falsey. The predicate is invoked with three arguments: (value, index, array). Since 3.0.0 Arguments array (Array): The array to query. [predicate=_.identity] (Function): The function invoked per iteration. Returns (Array): Returns the slice of array. Example var users = [   { 'user': 'barney',  'active': true },

_.dropRight

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

_.drop

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

_.divide

_.divide(dividend, divisor) source npm package Divide two numbers. Since 4.7.0 Arguments dividend (number): The first number in a division. divisor (number): The second number in a division. Returns (number): Returns the quotient. Example _.divide(6, 4); // => 1.5