param start param stop param step export function range ( start , stop , step = 1 ) { const n = Math . max ( 0 , Math . ceil ( ( stop - start ) / step ) ) ; const range = new Array ( n ) ; let i = - 1 ; while ( ++ i < n ) { range [ i ] = start + i * step ; } return range ; }