Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript remove object key

var obj = {a: 5, b: 3};
delete obj["a"];
console.log(obj); // {b: 3}
 
PREVIOUS NEXT
Tagged: #javascript #remove #object #key
ADD COMMENT
Topic
Name
2+8 =