4 lines
111 B
TypeScript
4 lines
111 B
TypeScript
export const range = (length: number, start = 1) => {
|
|
return Array.from({ length }, (n, i) => i + start);
|
|
};
|