Skip to content

Commit

Permalink
fix: iterator for digits in BigInt
Browse files Browse the repository at this point in the history
  • Loading branch information
TanyaLagodich committed Sep 2, 2024
1 parent 54b2302 commit 3d977b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Iter8or.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export default class Iter8or {
}

#createIterable(iterable) {
if (typeof iterable === 'number') {
if (typeof iterable === 'number' || typeof iterable === 'bigint') {
if (this.options.digits) {
this.iterable = new DigitsIterable(iterable);
} else {
Expand Down

0 comments on commit 3d977b5

Please sign in to comment.