Skip to content

Instantly share code, notes, and snippets.

@Sanchithasharma
Created November 28, 2020 15:38
Show Gist options
  • Save Sanchithasharma/2b46a103cb9cc70fd644fe9f4df0b4c8 to your computer and use it in GitHub Desktop.
Save Sanchithasharma/2b46a103cb9cc70fd644fe9f4df0b4c8 to your computer and use it in GitHub Desktop.
Delete the Property from an Object
var brooklynNineNine = {
name: 'Amy Santiago',
currentRole: 'Detective brooklyn99',
husband: 'Jake Peralta',
mentor: 'Raymond Holt'
}
delete brooklynNineNine.mentor;
console.log(brooklynNineNine)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment