Javascript round

Date: 2019-06-19
function round(number, precision) {
  const factor = 10 ** precision; // Math.pow(10, precision)
  return Math.round((number + Number.EPSILON ) * factor) / factor;
}

22340cookie-checkJavascript round