Last active
June 13, 2017 23:48
-
-
Save andycarrell/d9781ee7c8ffdb4e67bf917cd1b901f0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Still not sure why object spread is not full spec... | |
const spread = (...objs) => Object.assign({}, ...objs); | |
const safeSpread = (...objs) => Object.assign({}, ...objs.map(o => o || {})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment