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

_.toPath

_.toPath(value) source npm package Converts value to a property path array. Since 4.0.0 Arguments value (*): The value to convert. Returns (Array): Returns the new property path array. Example _.toPath('a.b.c'); // => ['a', 'b', 'c']   _.toPath('a[0].b.c'); // => ['a', '0', 'b', 'c']

_.takeWhile

_.takeWhile(array, [predicate=_.identity]) source npm package Creates a slice of array with elements taken from the beginning. Elements are taken 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 },   { 'us

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

_.words

_.words([string=''], [pattern]) source npm package Splits string into an array of its words. Since 3.0.0 Arguments [string=''] (string): The string to inspect. [pattern] (RegExp|string): The pattern to match words. Returns (Array): Returns the words of string. Example _.words('fred, barney, & pebbles'); // => ['fred', 'barney', 'pebbles']   _.words('fred, barney, & pebbles', /[^, ]+/g); // => ['fred', 'barney', '&', 'pebbles']

_.partition

_.partition(collection, [predicate=_.identity]) source npm package Creates an array of elements split into two groups, the first of which contains elements predicate returns truthy for, the second of which contains elements predicate returns falsey for. The predicate is invoked with one argument: (value). Since 3.0.0 Arguments collection (Array|Object): The collection to iterate over. [predicate=_.identity] (Function): The function invoked per iteration. Returns (Array): Returns the array

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

_.pullAll

_.pullAll(array, values) source npm package This method is like _.pull except that it accepts an array of values to remove.Note: Unlike _.difference, this method mutates array. Since 4.0.0 Arguments array (Array): The array to modify. values (Array): The values to remove. Returns (Array): Returns array. Example var array = ['a', 'b', 'c', 'a', 'b', 'c'];   _.pullAll(array, ['a', 'c']); console.log(array); // => ['b', 'b']

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