1 var baseUniq = require('./_baseUniq');
4 * Creates a duplicate-free version of an array, using
5 * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
6 * for equality comparisons, in which only the first occurrence of each element
7 * is kept. The order of result values is determined by the order they occur
14 * @param {Array} array The array to inspect.
15 * @returns {Array} Returns the new duplicate free array.
21 function uniq(array) {
22 return (array && array.length) ? baseUniq(array) : [];
25 module.exports = uniq;