Test migration to jest by hand
Apparently using regular expressions is way easier.
This commit is contained in:
2
test/round/round.js
Normal file
2
test/round/round.js
Normal file
@ -0,0 +1,2 @@
|
||||
const round = (n, decimals = 0) => Number(`${Math.round(`${n}e${decimals}`)}e-${decimals}`);
|
||||
module.exports = round;
|
||||
Reference in New Issue
Block a user