Skip to content

Commit a838f3c

Browse files
committed
Add utility function to get multiplier
1 parent 87333e2 commit a838f3c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

js/util.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
function getMultiplier(baseValue, otherValue) {
2+
return parseInt(otherValue, 10) / parseInt(baseValue, 10);
3+
}

0 commit comments

Comments
 (0)