Reminder to future self:
Don't accidentally create a file named --, it's a pain in the ass to delete.
Reminder to future self:
Don't accidentally create a file named --, it's a pain in the ass to delete.
#functionalprogramming #javascript snippet of the day
`(...o) => _.partial(_.assign, {})(...o)`
Example:
```
> const _ = require('lodash')
undefined
> const mix = (...o) => _.partial(_.assign, {})(...o)
undefined
> mix({one:1}, {two:2})
{ one: 1, two: 2 }
> mix({one:1}, {too:2})
{ one: 1, too: 2 }
```
Avoid a lot of repetitious `_.assign({}, ...)`