export class ArrayUtils { public static range ( start , end , step = 1 ) { function * generateRange ( ) { let x = start - step ; while ( x <= end - step ) { yield ( x += step ) ; } } return { [ Symbol . iterator ] : generateRange } ; } }