Wednesday, March 25, 2015

Should I use Extend or Assign in Lodash?



Use _.assign()



  1. 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.
  2. ECMAScript 6 will use assign() and not extend().

No comments:

Post a Comment