a very basic Array question but I don't know how to do this in the best possible way.
I have an array
var pathArr = [element1, element2, element3, element4, element5, element6]
what can I do if I want to select multiple elements of this path at once.
Lets say:
pathArr[0-2].dofunction()
in this example I'm doing the function on the first three elements.
or
pathArr[1,6].dofunction()
in this example only on element1 and element6
Is there something I can do with an array?