Lines Matching refs:uniq
153 assert.deepEqual(_.uniq(list), [1, 2, 3, 4], 'can find the unique values of an unsorted array');
155 …assert.deepEqual(_.uniq(list, true), [1, 2, 3], 'can find the unique values of a sorted array fast…
160 …assert.deepEqual(_.uniq(list, false, iterator), expected, 'uses the result of `iterator` for uniqu…
161 …assert.deepEqual(_.uniq(list, iterator), expected, '`sorted` argument defaults to false when omitt…
162 …assert.deepEqual(_.uniq(list, 'name'), expected, 'when `iterator` is a string, uses that key for c…
167 …assert.deepEqual(_.uniq(list, true, iterator), expected, 'uses the result of `iterator` for unique…
168 …assert.deepEqual(_.uniq(list, true, 'score'), expected, 'when `iterator` is a string, uses that ke…
170 …assert.deepEqual(_.uniq([{0: 1}, {0: 1}, {0: 1}, {0: 2}], 0), [{0: 1}, {0: 2}], 'can use falsey pl…
172 var result = (function(){ return _.uniq(arguments); }(1, 2, 1, 3, 1, 4));
176 …assert.deepEqual(_.uniq([a, b, a, b, c]), [a, b, c], 'works on values that can be tested for equiv…
178 assert.deepEqual(_.uniq(null), [], 'returns an empty array when `array` is not iterable');
182 _.uniq(list, function(value, index, array) {
192 assert.strictEqual(_.unique, _.uniq, 'is an alias for uniq');