use for loop instead of Array#forEach for compat
this also greatly increases performance