Created
May 29, 2018 12:09
-
-
Save oguzhanaslan/75ab9b52a07d1e4338960f26a98ad05c to your computer and use it in GitHub Desktop.
_.merge vs Object.assign
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
var obj1 = { adalet: false } | |
var obj2 = { barış: false } | |
var obj3 = { özgürlük: false } | |
// lodash | |
_.merge({}, obj1, obj2, obj3) | |
// JavaScript | |
Object.assign({}, obj1, obj2, obj3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment