_.startsWith

_.startsWith([string=''], [target], [position=0]) source npm package Checks if string starts with the given target string. Since 3.0.0 Arguments [string=''] (string): The string to inspect. [target] (string): The string to search for. [position=0] (number): The position to search from. Returns (boolean): Returns true if string starts with target, else false. Example _.startsWith('abc', 'a'); // => true   _.startsWith('abc', 'b'); // => false   _.startsWith('abc', 'b', 1); // => 

_.startCase

_.startCase([string='']) source npm package Converts string to start case. Since 3.1.0 Arguments [string=''] (string): The string to convert. Returns (string): Returns the start cased string. Example _.startCase('--foo-bar--'); // => 'Foo Bar'   _.startCase('fooBar'); // => 'Foo Bar'   _.startCase('__FOO_BAR__'); // => 'FOO BAR'

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

_.flatMapDeep

_.flatMapDeep(collection, [iteratee=_.identity]) source npm package This method is like _.flatMap except that it recursively flattens the mapped results. Since 4.7.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(n) {   return [[[n, n]]]; }   _.flatMapDeep([1, 2], duplicate); // => [1, 1, 2, 2]

_.bindAll

_.bindAll(object, methodNames) source npm package Binds methods of an object to the object itself, overwriting the existing method.Note: This method doesn't set the "length" property of bound functions. Since 0.1.0 Arguments object (Object): The object to bind and assign the bound methods to. methodNames (...(string|string[])): The object method names to bind. Returns (Object): Returns object. Example var view = {   'label': 'docs',   'click': function() {     console.log('clicked ' + th

_.slice

_.slice(array, [start=0], [end=array.length]) source npm package Creates a slice of array from start up to, but not including, end.Note: This method is used instead of Array#slice to ensure dense arrays are returned. Since 3.0.0 Arguments array (Array): The array to slice. [start=0] (number): The start position. [end=array.length] (number): The end position. Returns (Array): Returns the slice of array.

_.spread

_.spread(func, [start=0]) source npm package Creates a function that invokes func with the this binding of the create function and an array of arguments much like Function#apply.Note: This method is based on the spread operator. Since 3.2.0 Arguments func (Function): The function to spread arguments over. [start=0] (number): The start position of the spread. Returns (Function): Returns the new function. Example var say = _.spread(function(who, what) {   return who + ' says ' + what; });  

_.toString

_.toString(value) source npm package Converts value to a string. An empty string is returned for null and undefined values. The sign of -0 is preserved. Since 4.0.0 Arguments value (*): The value to convert. Returns (string): Returns the converted string. Example _.toString(null); // => ''   _.toString(-0); // => '-0'   _.toString([1, 2, 3]); // => '1,2,3'

_.nthArg

_.nthArg([n=0]) source npm package Creates a function that gets the argument at index n. If n is negative, the nth argument from the end is returned. Since 4.0.0 Arguments [n=0] (number): The index of the argument to return. Returns (Function): Returns the new pass-thru function. Example var func = _.nthArg(1); func('a', 'b', 'c', 'd'); // => 'b'   var func = _.nthArg(-2); func('a', 'b', 'c', 'd'); // => 'c'

_.subtract

_.subtract(minuend, subtrahend) source npm package Subtract two numbers. Since 4.0.0 Arguments minuend (number): The first number in a subtraction. subtrahend (number): The second number in a subtraction. Returns (number): Returns the difference. Example _.subtract(6, 4); // => 2