-
-
Save ACbosong/736879e1a430ecb500552a3a9a90696f to your computer and use it in GitHub Desktop.
This file contains 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
let o1 = { | |
attr1: 1, | |
attr2: 2, | |
}; | |
o1.attr3 = 3; | |
delete o1.attr3; // true | |
delete o1.attr2; // true | |
Object.keys(o1); // ["attr1"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment