How to map values in the array of arrays based on the second value in each array I have the following data in the array of arrays: