Reputation: 581
I have an array of values
arr = ["a","b","c","d"]
and I have another array of indexes
indexes = [0,2]
What is the best way to get the values of the array at these indexes ?
If I apply the method to the values above
it should return
["a","c"]
Upvotes: 1
Views: 1975