Method Array.everynth()


Method everynth

array(mixed) everynth(array(mixed) a, void|int(1..) n, void|int(0..) start)

Description

Return an array with every n:th element of the array a.

If n is zero every other element will be returned.

See also

splice(), `/()