Create an array without duplicates
MIT License
$ npm install array-uniq
import arrayUniq from 'array-uniq'; arrayUniq([1, 1, 2, 3, 3]); //=> [1, 2, 3] arrayUniq(['foo', 'foo', 'bar', 'foo']); //=> ['foo', 'bar']
Create an array with values that are present in the first input array but not additional ones
Repeat a string - fast
Strip leading whitespace from each line in a string
Generate random numbers that are consecutively unique
Randomize the order of items in an array
Check if two arrays are equal
ES2015 `Array#findIndex()` ponyfill
Strip redundant indentation and indent the string
Get consecutively unique elements from an array
Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}
Generate a unique random string
Create an array of unique values, in order, from the input arrays
Indent each line in a string
Convert a value to an array
Import a module lazily