DEV Community

Discussion on: 1 line of code: How to get every odd item of an Array

 
giulio profile image
Giulio "Joshi"

wouldn't jumping 2 steps ensure only odd positional, but not values?
(I just assume an unsorted array of random values)

Thread Thread
 
jonrandy profile image
Jon Randy 🎖️

Odd positional is what we're after

Some comments have been hidden by the post's author - find out more