Skip to content

Commit

Permalink
Update shuffleEffects function
Browse files Browse the repository at this point in the history
  • Loading branch information
jolaleye committed Apr 27, 2019
1 parent 28a0e2e commit 37926cb
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions assets/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,5 @@ export function shuffleEffects(obj) {
copy[index] = value;
}

const newEffects = {};
for (const effect of copy) {
newEffects[effect[0]] = effect[1];
}

return newEffects;
return Object.fromEntries(copy);
}

0 comments on commit 37926cb

Please sign in to comment.