We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54373e8 commit 4ac5ed1Copy full SHA for 4ac5ed1
src/helpers/index.js
@@ -46,4 +46,4 @@ export const modInverse = (number, mod) => {
46
47
export const toNumber = (...args) => args.map(a => Number(a))
48
49
-export const mergeObjects = (a, b) => ({ ...a, ...b })
+export const mergeObjects = (...objects) => objects.reduce((acc, object) => ({ ...acc, ...object }), {})
0 commit comments