mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 08:07:50 +00:00
17 lines
407 B
JavaScript
17 lines
407 B
JavaScript
import lodashStable from 'lodash';
|
|
|
|
describe('uniq', () => {
|
|
it('should perform an unsorted uniq when used as an iteratee for methods like `_.map`', () => {
|
|
const array = [
|
|
[2, 1, 2],
|
|
[1, 2, 1],
|
|
];
|
|
const actual = lodashStable.map(array, lodashStable.uniq);
|
|
|
|
expect(actual).toEqual([
|
|
[2, 1],
|
|
[1, 2],
|
|
]);
|
|
});
|
|
});
|