JavaScript数字指定位数四舍五入?

const round = (n, d) => Number(Math.round(n + "e" + d) + "e-" + d)
console.log( round(1.008,2) ); // 1.01