Use _.assign()
Justification
- If you look at the lodash documentation for _.assign() you'll see that _.extend() is an alias for _.assign(), not the other way around. This would imply that _.assign() is the default and _.extend() is an alternative.
- ECMAScript 6 will use assign() and not extend().
No comments:
Post a Comment