Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

Commit f1693cf

Browse files
committed
Modified actions.xor to use the strategy.push for an array concatenation
1 parent c65f6a6 commit f1693cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/actions/model-actions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export function createModelActions(s = defaultStrategies) {
7474
const valueWithoutItem = value.filter((_item) => !iteratee(_item));
7575

7676
return (s.length(value) === s.length(valueWithoutItem))
77-
? [...value, item]
77+
? s.push(value, item)
7878
: valueWithoutItem;
7979
}, s.array, 3);
8080

0 commit comments

Comments
 (0)