_.template

_.template([string=''], [options={}]) source npm package Creates a compiled template function that can interpolate data properties in "interpolate" delimiters, HTML-escape interpolated data properties in "escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data properties may be accessed as free variables in the template. If a setting object is given, it takes precedence over _.templateSettings values.Note: In the development build _.template utilizes sourceURLs for easier de

_.zipWith

_.zipWith([arrays], [iteratee=_.identity]) source npm package This method is like _.zip except that it accepts iteratee to specify how grouped values should be combined. The iteratee is invoked with the elements of each group: (...group). Since 3.8.0 Arguments [arrays] (...Array): The arrays to process. [iteratee=_.identity] (Function): The function to combine grouped values. Returns (Array): Returns the new array of grouped elements. Example _.zipWith([1, 2], [10, 20], [100, 200], functi

_.now

_.now() source npm package Gets the timestamp of the number of milliseconds that have elapsed since the Unix epoch (1 January 1970 00:00:00 UTC). Since 2.4.0 Returns (number): Returns the timestamp. Example _.defer(function(stamp) {   console.log(_.now() - stamp); }, _.now()); // => Logs the number of milliseconds it took for the deferred invocation.

_.uniqueId

_.uniqueId([prefix='']) source npm package Generates a unique ID. If prefix is given, the ID is appended to it. Since 0.1.0 Arguments [prefix=''] (string): The value to prefix the ID with. Returns (string): Returns the unique ID. Example _.uniqueId('contact_'); // => 'contact_104'   _.uniqueId(); // => '105'

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

_.isArrayLikeObject

_.isArrayLikeObject(value) source npm package This method is like _.isArrayLike except that it also checks if value is an object. Since 4.0.0 Arguments value (*): The value to check. Returns (boolean): Returns true if value is an array-like object, else false. Example _.isArrayLikeObject([1, 2, 3]); // => true   _.isArrayLikeObject(document.body.children); // => true   _.isArrayLikeObject('abc'); // => false   _.isArrayLikeObject(_.noop); // => false

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

_.sampleSize

_.sampleSize(collection, [n=1]) source npm package Gets n random elements at unique keys from collection up to the size of collection. Since 4.0.0 Arguments collection (Array|Object): The collection to sample. [n=1] (number): The number of elements to sample. Returns (Array): Returns the random elements. Example _.sampleSize([1, 2, 3], 2); // => [3, 1]   _.sampleSize([1, 2, 3], 4); // => [2, 3, 1]

_.pad

_.pad([string=''], [length=0], [chars=' ']) source npm package Pads string on the left and right sides if it's shorter than length. Padding characters are truncated if they can't be evenly divided by length. Since 3.0.0 Arguments [string=''] (string): The string to pad. [length=0] (number): The padding length. [chars=' '] (string): The string used as padding. Returns (string): Returns the padded string. Example _.pad('abc', 8); // => '  abc   '   _.pad('abc', 8, '_-'); // => '_-abc

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