Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit 77c141e

Browse files
fix: es2015 compatibility
1 parent 067e254 commit 77c141e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/pager/deckdeckgo-pager/deckdeckgo-pager.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class DeckdeckgoPager {
1717

1818
@Watch('length')
1919
calculateProgression() {
20-
this.steps = [...Array(this.length).keys()];
20+
this.steps = Array.from({ length: this.length }, (_v, i) => i);
2121
this.progression = Math.round(((this.activeIndex + 1) / this.length) * 100);
2222
}
2323

0 commit comments

Comments
 (0)