_.map

_.map(collection, [iteratee=_.identity]) source npm package Creates an array of values by running each element in collection thru iteratee. The iteratee is invoked with three arguments:(value, index|key, collection).Many lodash methods are guarded to work as iteratees for methods like _.every, _.filter, _.map, _.mapValues, _.reject, and _.some.The guarded methods are:ary, chunk, curry, curryRight, drop, dropRight, every, fill, invert, parseInt, random, range, rangeRight, repeat, sampleSize, s

_.truncate

_.truncate([string=''], [options={}]) source npm package Truncates string if it's longer than the given maximum string length. The last characters of the truncated string are replaced with the omission string which defaults to "...". Since 4.0.0 Arguments [string=''] (string): The string to truncate. [options={}] (Object): The options object. [options.length=30] (number): The maximum string length. [options.omission='...'] (string): The string to indicate text is omitted. [options.separa

_.get

_.get(object, path, [defaultValue]) source npm package Gets the value at path of object. If the resolved value is undefined, the defaultValue is returned in its place. Since 3.7.0 Arguments object (Object): The object to query. path (Array|string): The path of the property to get. [defaultValue] (*): The value returned for undefined resolved values. Returns (*): Returns the resolved value. Example var object = { 'a': [{ 'b': { 'c': 3 } }] };   _.get(object, 'a[0].b.c'); // => 3   _.ge

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

_.isBoolean

_.isBoolean(value) source npm package Checks if value is classified as a boolean primitive or object. Since 0.1.0 Arguments value (*): The value to check. Returns (boolean): Returns true if value is a boolean, else false. Example _.isBoolean(false); // => true   _.isBoolean(null); // => false

_.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); // => 

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

_.isDate

_.isDate(value) source npm package Checks if value is classified as a Date object. Since 0.1.0 Arguments value (*): The value to check. Returns (boolean): Returns true if value is a date object, else false. Example _.isDate(new Date); // => true   _.isDate('Mon April 23 2012'); // => false

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

_.last

_.last(array) source npm package Gets the last element of array. Since 0.1.0 Arguments array (Array): The array to query. Returns (*): Returns the last element of array. Example _.last([1, 2, 3]); // => 3