mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-12 20:07:49 +00:00
Add _.uniq unit test.
Former-commit-id: 29a09711863011681a45ae800502eca9a7022799
This commit is contained in:
@@ -1754,6 +1754,13 @@
|
|||||||
|
|
||||||
deepEqual(actual, [1, 2, 3]);
|
deepEqual(actual, [1, 2, 3]);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test('should distinguish between numbers and numeric strings', function() {
|
||||||
|
var expected = ['2', 2, Object('2'), Object(2)],
|
||||||
|
actual = _.uniq(expected);
|
||||||
|
|
||||||
|
deepEqual(actual, expected);
|
||||||
|
});
|
||||||
}());
|
}());
|
||||||
|
|
||||||
/*--------------------------------------------------------------------------*/
|
/*--------------------------------------------------------------------------*/
|
||||||
|
|||||||
Reference in New Issue
Block a user