_.random

_.random([lower=0], [upper=1], [floating]) source npm package Produces a random number between the inclusive lower and upper bounds. If only one argument is provided a number between 0 and the given number is returned. If floating is true, or either lower or upper are floats, a floating-point number is returned instead of an integer.Note: JavaScript follows the IEEE-754 standard for resolving floating-point values which can produce unexpected results. Since 0.7.0 Arguments [lower=0] (number)

_.uniqWith

_.uniqWith(array, [comparator]) source npm package This method is like _.uniq except that it accepts comparator which is invoked to compare elements of array. The order of result values is determined by the order they occur in the array.The comparator is invoked with two arguments: (arrVal, othVal). Since 4.0.0 Arguments array (Array): The array to inspect. [comparator] (Function): The comparator invoked per element. Returns (Array): Returns the new duplicate free array. Example var objec

_.prototype.at

_.prototype.at([paths]) source This method is the wrapper version of _.at. Since 1.0.0 Arguments [paths] (...(string|string[])): The property paths to pick. Returns (Object): Returns the new lodash wrapper instance. Example var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };   _(object).at(['a[0].b.c', 'a[1]']).value(); // => [3, 4]

_.times

_.times(n, [iteratee=_.identity]) source npm package Invokes the iteratee n times, returning an array of the results of each invocation. The iteratee is invoked with one argument; (index). Since 0.1.0 Arguments n (number): The number of times to invoke iteratee. [iteratee=_.identity] (Function): The function invoked per iteration. Returns (Array): Returns the array of results. Example _.times(3, String); // => ['0', '1', '2']    _.times(4, _.constant(0)); // => [0, 0, 0, 0]

_.runInContext

_.runInContext([context=root]) source npm package Create a new pristine lodash function using the context object. Since 1.1.0 Arguments [context=root] (Object): The context object. Returns (Function): Returns a new lodash function. Example _.mixin({ 'foo': _.constant('foo') });   var lodash = _.runInContext(); lodash.mixin({ 'bar': lodash.constant('bar') });   _.isFunction(_.foo); // => true _.isFunction(_.bar); // => false   lodash.isFunction(lodash.foo); // => false lodash.isFun

_.ceil

_.ceil(number, [precision=0]) source npm package Computes number rounded up to precision. Since 3.10.0 Arguments number (number): The number to round up. [precision=0] (number): The precision to round up to. Returns (number): Returns the rounded up number. Example _.ceil(4.006); // => 5   _.ceil(6.004, 2); // => 6.01   _.ceil(6040, -2); // => 6100

_.ary

_.ary(func, [n=func.length]) source npm package Creates a function that invokes func, with up to n arguments, ignoring any additional arguments. Since 3.0.0 Arguments func (Function): The function to cap arguments for. [n=func.length] (number): The arity cap. Returns (Function): Returns the new capped function. Example _.map(['6', '8', '10'], _.ary(parseInt, 1)); // => [6, 8, 10]

_.kebabCase

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

_.sortedLastIndexOf

_.sortedLastIndexOf(array, value) source npm package This method is like _.lastIndexOf except that it performs a binary search on a sorted array. Since 4.0.0 Arguments array (Array): The array to inspect. value (*): The value to search for. Returns (number): Returns the index of the matched value, else -1. Example _.sortedLastIndexOf([4, 5, 5, 5, 6], 5); // => 3

_.invert

_.invert(object) source npm package Creates an object composed of the inverted keys and values of object. If object contains duplicate values, subsequent values overwrite property assignments of previous values. Since 0.7.0 Arguments object (Object): The object to invert. Returns (Object): Returns the new inverted object. Example var object = { 'a': 1, 'b': 2, 'c': 1 };   _.invert(object); // => { '1': 'c', '2': 'b' }