Answers for "delete kvp object"

1

delete kvp object

// remove key-value pair from object
let person = {
  name: 'Bob',
  age: 34
};

delete person['age'];
console.log(person); // { name: 'Bob' }
Posted by: Guest on December-04-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language