Created
May 23, 2017 01:45
-
-
Save cyberfly/cd333196e7b5c9af3b1e119d25bc9951 to your computer and use it in GitHub Desktop.
Remove element from Object using Javacript
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 obj = {name: "upin", email: "[email protected]", role_id: "1"}; | |
| delete obj.email; | |
| //will produce {name: "upin", role_id: "1"} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment