Skip to content

Commit

Permalink
fix: don't spread the keysToOmit parameter in omit util (#563)
Browse files Browse the repository at this point in the history
Resolves #555
  • Loading branch information
carlmanaster authored and Claudéric Demers committed Jul 28, 2019
1 parent bc34308 commit 1c69772
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function arrayMove(array, from, to) {
return array;
}

export function omit(obj, ...keysToOmit) {
export function omit(obj, keysToOmit) {
return Object.keys(obj).reduce((acc, key) => {
if (keysToOmit.indexOf(key) === -1) {
acc[key] = obj[key];
Expand Down

0 comments on commit 1c69772

Please sign in to comment.