mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-17 03:01:25 +00:00
refactor(lib): extract fillArray utility
This commit is contained in:
parent
06e02c3dc3
commit
f3c702947c
7 changed files with 23 additions and 10 deletions
5
src/lib/fill-array.js
Normal file
5
src/lib/fill-array.js
Normal file
|
@ -0,0 +1,5 @@
|
|||
function fillArray(length) {
|
||||
return Array.from({ length }, (_, i) => i);
|
||||
}
|
||||
|
||||
export { fillArray };
|
Loading…
Add table
Add a link
Reference in a new issue