Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Object JavaScript deleting properties
delete book.author; // Deleted the book author property.
delete book["main title"]; // Now it doesn't have "main title", either
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment