I have an object of array's like so:
{
"numbers": [
{"id":"11111"},
{"id":"22222"}
],
"letters": [
{"id":"aaaaa"},
{"id":"bbbbb"},
{"id":"33333"}
]
}
I'd like to figure out how to move id: 33333 from the letters object to the numbers object.
The only want I know how to move things is within it's own "dimension" using the .move(old_index, new_index)
Could anyone help me out to move from a different dimension?
I know a possible way would be to cycle through each item in the array, look for the specific id, and then push it to the other array and delete it from the previous one but I am trying to see if there is a better way.