UNPKG

adhara

Version:

foundation for any kind of website: microframework

11 lines 235 B
function* range(start, stop, step=1){ if(step >= 0){ for(let i=start; i+step<=stop; i+=step){ yield i; } }else{ for(let i=start; i+step>=stop; i+=step){ yield i; } } }