diff --git a/src/lib/components/Output/Print/Systems/Firecons/Firecons.stories.svelte b/src/lib/components/Output/Print/Systems/Firecons/Firecons.stories.svelte new file mode 100644 index 0000000..83ad5f0 --- /dev/null +++ b/src/lib/components/Output/Print/Systems/Firecons/Firecons.stories.svelte @@ -0,0 +1,17 @@ + + + + + + + diff --git a/src/lib/components/Output/Print/Systems/Firecons/index.svelte b/src/lib/components/Output/Print/Systems/Firecons/index.svelte index 10ce7c2..673a3ce 100644 --- a/src/lib/components/Output/Print/Systems/Firecons/index.svelte +++ b/src/lib/components/Output/Print/Systems/Firecons/index.svelte @@ -1,11 +1,11 @@
- {#each _.range(firecons) as firecon} + {#each range(1,firecons) as firecon} firecon {/each}
diff --git a/src/lib/utils.js b/src/lib/utils.js new file mode 100644 index 0000000..79226cb --- /dev/null +++ b/src/lib/utils.js @@ -0,0 +1,8 @@ +export function range(min, max) { + if(max === undefined) { + max = min; + min = 0; + } + + return Array.from({length: 1+max - min}).map( (_d,i) => i+ min); +}