Merged in chore/SW-3145-move-date-to-design-system (pull request #2556)
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
This commit is contained in:
6
packages/common/utils/rangeArray.ts
Normal file
6
packages/common/utils/rangeArray.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export function rangeArray(start: number, stop: number, step: number = 1) {
|
||||
return Array.from(
|
||||
{ length: (stop - start) / step + 1 },
|
||||
(_, index) => start + index * step
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user