UNPKG

bbo

Version:

bbo is a utility library of zero dependencies for javascript.

9 lines (6 loc) 211 B
'use strict'; var floor = function (n) { var m = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; return Math.floor(n * Math.pow(10, m)) / Math.pow(10, m); }; module.exports = floor;