Simple removal of element two-dimensional array, exists without iterating through the array?

Actually interested in the question of the removal element two-dimensional array, so that it was quickly and efficiently)

here is an example array:
{ '8': [ 'Z0lRXJRi9YONKQPPAAAA' ],
 '9': [ '1uRzQxBpOG6PuylHAAAB', 'RlNpIRW3a-cUzlAKAAAC' ] }

you need to uninstall RlNpIRW3a-cUzlAKAAAC

something like delete array_list[id][element];
But delete I understand works with a normal array.

The fact that the array hanging in memory and I would like to avoid iterating through the array, but if there is no way we go through.
June 5th 19 at 21:48
2 answers
June 5th 19 at 21:50
const arr = { '8': [ 'Z0lRXJRi9YONKQPPAAAA' ], '9': [ '1uRzQxBpOG6PuylHAAAB', 'RlNpIRW3a-cUzlAKAAAC' ] }
delete arr[9].splice([arr[9].indexOf('RlNpIRW3a-cUzlAKAAAC')], 1);
Thank you! - Tyra_Wym commented on June 5th 19 at 21:53
June 5th 19 at 21:52
Delete array element using a method that takes the first argument the index of the array element, and the second is the number of elements that need to be removed.
array_list['9'].splice(1, 1);
Link to the documentation.

Find more questions by tags JavaScript