In my JSON object, I am trying to find a way to remove the first element. Here is an example of what I have:
var obj1 = {property:'something', does:'somethingElse', is:'somethingCool'};
var obj2 = {does:'somethingElse', property:'something', is:'somethingCool'}
I am looking for a function that can delete 'property' from obj1 and 'somethingElse' from obj2 (the item at index 0).
I attempted this method:
var person = {firstName:"John", lastName:"Doe", age:46};
delete person[0];
console.log(person);
Unfortunately, this approach did not yield the desired result.
Although it seems like a simple task, I have not been able to locate a solution online yet.