98, making an array with these numbers
I am still waiting for the list comprehension in js, in the meanwhile, which other approach can i take in ts?
const range = (from, to) => { return [...Array.from({length: Math.abs(to - from + 1)}, (item, i) => i + from)]; };
Обсуждают сегодня