avoid use of Math.min(), Math.max(), array.push(), and array.splice() in performance critical code to avoid allocation of rest Arrays and their inevitable garbage collection