cant find any reference in google. will be thankful for explanation
let valid1 = [1,2,3,4]
let valid2= [5,6,7,8]
const batch = [valid1, valid2]
// expected return [ 5, 6, 7, 8 ]
i need expected return valid2 (name of the variable in batch array)
how to do this and where to read about this behaviour?