6 lines
143 B
TypeScript
6 lines
143 B
TypeScript
export const range = (start: number, end: number) => {
|
|
const length = end - start;
|
|
|
|
return Array.from({ length }, (_, i) => start + i);
|
|
};
|