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

_.uniqBy

_.uniqBy(array, [iteratee=_.identity]) source npm package This method is like _.uniq except that it accepts iteratee which is invoked for each element in array to generate the criterion by which uniqueness is computed. The order of result values is determined by the order they occur in the array. The iteratee is invoked with one argument:(value). Since 4.0.0 Arguments array (Array): The array to inspect. [iteratee=_.identity] (Function): The iteratee invoked per element. Returns (Array):

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

_.uniq

_.uniq(array) source npm package Creates a duplicate-free version of an array, using SameValueZero for equality comparisons, in which only the first occurrence of each element is kept. The order of result values is determined by the order they occur in the array. Since 0.1.0 Arguments array (Array): The array to inspect. Returns (Array): Returns the new duplicate free array. Example _.uniq([2, 1, 2]); // => [2, 1]

_.unionWith

_.unionWith([arrays], [comparator]) source npm package This method is like _.union except that it accepts comparator which is invoked to compare elements of arrays. Result values are chosen from the first array in which the value occurs. The comparator is invoked with two arguments: (arrVal, othVal). Since 4.0.0 Arguments [arrays] (...Array): The arrays to inspect. [comparator] (Function): The comparator invoked per element. Returns (Array): Returns the new array of combined values. Examp

_.unionBy

_.unionBy([arrays], [iteratee=_.identity]) source npm package This method is like _.union except that it accepts iteratee which is invoked for each element of each arrays to generate the criterion by which uniqueness is computed. Result values are chosen from the first array in which the value occurs. The iteratee is invoked with one argument:(value). Since 4.0.0 Arguments [arrays] (...Array): The arrays to inspect. [iteratee=_.identity] (Function): The iteratee invoked per element. Retur

_.union

_.union([arrays]) source npm package Creates an array of unique values, in order, from all given arrays using SameValueZero for equality comparisons. Since 0.1.0 Arguments [arrays] (...Array): The arrays to inspect. Returns (Array): Returns the new array of combined values. Example _.union([2], [1, 2]); // => [2, 1]

_.unescape

_.unescape([string='']) source npm package The inverse of _.escape; this method converts the HTML entities &ampamp;, &amplt;, &ampgt;, &ampquot;, and &amp#39; in string to their corresponding characters.Note: No other HTML entities are unescaped. To unescape additional HTML entities use a third-party library like he. Since 0.6.0 Arguments [string=''] (string): The string to unescape. Returns (string): Returns the unescaped string. Example _.unescape('fred, barney, &a

_.unary

_.unary(func) source npm package Creates a function that accepts up to one argument, ignoring any additional arguments. Since 4.0.0 Arguments func (Function): The function to cap arguments for. Returns (Function): Returns the new capped function. Example _.map(['6', '8', '10'], _.unary(parseInt)); // => [6, 8, 10]

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