Make fp.without an alias of fp.difference. [closes #2122]

This commit is contained in:
John-David Dalton
2016-03-16 21:30:48 -07:00
parent 412e19006b
commit b61d30da1a
2 changed files with 5 additions and 3 deletions

View File

@@ -471,7 +471,7 @@
assert.expect(10);
var array = ['a', 'b', 'c'],
other = ['b', 'b', 'd'],
other = ['b', 'd', 'b'],
object = { 'a': 1, 'b': 2, 'c': 2 },
actual = fp.difference(array)(other);
@@ -495,7 +495,7 @@
actual = fp.uniqBy(_.identity, other);
assert.deepEqual(actual, ['b', 'd'], 'fp.uniqBy');
actual = fp.without('b')(array);
actual = fp.without(array)(other);
assert.deepEqual(actual, ['a', 'c'], 'fp.without');
actual = fp.xor(other)(array);