feat: SW-3145 Moved date component to design system * chore: SW-3145 Moved date component to design system Approved-by: Anton Gunnarsson Approved-by: Matilda Landström
7 lines
185 B
TypeScript
7 lines
185 B
TypeScript
export function rangeArray(start: number, stop: number, step: number = 1) {
|
|
return Array.from(
|
|
{ length: (stop - start) / step + 1 },
|
|
(_, index) => start + index * step
|
|
)
|
|
}
|