That doesn’t have anything to do with nested arrays does it, you could just as well say that you wanted to look up three integers
let stuff = [1, 2, 3, 4, 5, 6]
(and nested arrays aren’t special anyway, are they? an array can refer to values, and an array is a value)
Does logging have anything to do with it? Are you talking about writing output, or making lookups?
So, maybe it would be better to talk about some operation. What would the input to this operation be, would it be multiple values or one value, and which? And what would the output be?
Maybe the input would be an array of indices and an array of values, and you’d want an array containing the values at those indices in that order.