Skip to content

Commit 1c69772

Browse files
carlmanasterClaudéric Demers
authored and
Claudéric Demers
committed
fix: don't spread the keysToOmit parameter in omit util (#563)
Resolves #555
1 parent bc34308 commit 1c69772

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export function arrayMove(array, from, to) {
2020
return array;
2121
}
2222

23-
export function omit(obj, ...keysToOmit) {
23+
export function omit(obj, keysToOmit) {
2424
return Object.keys(obj).reduce((acc, key) => {
2525
if (keysToOmit.indexOf(key) === -1) {
2626
acc[key] = obj[key];

0 commit comments

Comments
 (0)