Help Needed: I'm working with an array that contains a nested array and I need to loop through it to locate a specific value.
arr = [['123456','234567'], ['345678']];
specificValue = '123456';
I am looking for a way to identify if there is a value that matches 'specificValue' and then return that value.
I attempted to use the following code snippet:
arr.filter(id => id === specificValue);
Your assistance is greatly appreciated. Thank you!