Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
16 lines (13 loc) · 574 Bytes

File metadata and controls

16 lines (13 loc) · 574 Bytes
Copy raw file
Download raw file
Edit and raw actions

Delete

delete can be used to remove a property from an object. It will remove a property from the object if it has one. It will not look further in the prototype chain. Removing a property from an object may allow a property from the prototype chain to shine through:

var adult = { age: 26 },
  child = Object.create(adult);
child.age = 8;

delete child.age;
/* Remove age property from child, revealing the age of the prototype, because then it is not overriden. */
var prototypeAge = child.age;
// 26, because child does not have its own age property.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.