I am trying to delete an element from an object but it is not deleting from the object.
My Object is in the following format
{"UNDET":0,"HLDS":8,"NGS":2,"NGRT":1,"TotalCount":13,"NGX":1}
Now, I want to delete the key and value of an element(for ex: "NGRT":1) based on its index or key name, I have tried splicing elements individually i.e keys and values separately but the problem here is after splicing elements the keys and values are getting misaligned
Any help is appreciated.
Thanks in advance!
If you want to delete a key from an object, then use
deleteoperator:As mdn says: