Created
April 14, 2016 21:55
-
-
Save heldr/fe5ca85652d64136a2e774a7a073c7da to your computer and use it in GitHub Desktop.
Assign, extend and merge
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
Object.assign({}, { a: 1, b: undefined }) | |
Object {a: 1, b: undefined} | |
jQuery.extend({}, { a: 1, b: undefined }) | |
Object {a: 1} | |
// lodash | |
_.extend({}, { a: 1, b: undefined }) | |
Object {a: 1, b: undefined} | |
_.merge({}, { a: 1, b: undefined }) | |
Object {a: 1} | |
_.assign({}, { a: 1, b: undefined }) | |
Object {a: 1, b: undefined} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment