Ad
  • Custom User Avatar

    removeNIndexedFromArray part doing this, for example:
    it accept arr = [3,5,7,9,11,13,15,17,19,21,23,25] as first parameter, and returns this array [5,7,11,13,17,19,23,25] as result. Looks like second argument is redundad, because it's always equal to arr[0].
    It will return an array with filtered every n-th indexed element.