mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 16:47:49 +00:00
Ensure _.xor() returns new unique array.
This commit is contained in:
committed by
John-David Dalton
parent
c61a0cdd22
commit
64fc924357
@@ -8108,9 +8108,10 @@
|
||||
deepEqual(actual, [1, 4, 5]);
|
||||
});
|
||||
|
||||
test('should return an array of unique values', 1, function() {
|
||||
test('should return an array of unique values', 2, function() {
|
||||
var actual = _.xor([1, 1, 2, 5], [2, 2, 3, 5], [3, 4, 5, 5]);
|
||||
deepEqual(actual, [1, 4, 5]);
|
||||
deepEqual(_.xor([1, 1]), [1]);
|
||||
});
|
||||
|
||||
test('should return a wrapped value when chaining', 2, function() {
|
||||
|
||||
Reference in New Issue
Block a user