I presume this is an odd question but I have to ask..
If I have a js object that looks like this:
$scope.obj1 = {
"name":"John",
"number":"Eleven",
"color":"Red"
}
Is there a way to remove an entire property? without re-assigning values to a new object.. So if I want to get rid of "number":"Eleven",
I would like the object to look like this...
$scope.obj1 = {
"name":"John",
"color":"Red"
}
Thanks!
No comments:
Post a Comment