Skip to content

Commit f943cdd

Browse files
♻️ refactor: Use Array.from instead of generator spread.
This fixes the build.
1 parent 95c711e commit f943cdd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/_digits.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ const _digits = ({jz, gt1, eq, muln, divmodn, divmod, egcd, sgn, abs}) => {
1515

1616
const decimals = dec(b, v, transient_length, has_repetend, u);
1717

18-
const transient = [..._take(decimals, transient_length)];
18+
const transient = Array.from(_take(decimals, transient_length));
1919

20-
const repetend = [...decimals];
20+
const repetend = Array.from(decimals);
2121

2222
return {sign: sgn(x), integral, transient, repetend};
2323
};

0 commit comments

Comments
 (0)