UNPKG

supergeneric

Version:

Supergeneric JS helper functions... formatters, math functions, sort functions, etc.

2 lines (1 loc) 106 B
"use strict";exports.rounder=(r=0)=>t=>((r,t=0)=>{const o=Math.pow(10,t);return Math.round(r*o)/o})(t,r);