瀏覽代碼

fix: remove duplicate function

pull/347/head
Shivam Mishra 4 年之前
父節點
當前提交
8101b1822e
共有 1 個檔案被更改,包括 1 行新增10 行删除
  1. +1
    -10
      src/js/utils/helpers.js

+ 1
- 10
src/js/utils/helpers.js 查看文件

@@ -114,13 +114,4 @@ export function round(d) {
// https://floating-point-gui.de/
// https://www.jacklmoore.com/notes/rounding-in-javascript/
return Number(Math.round(d + 'e4') + 'e-4');
}
/**
* Round a number to the closes precision, max max precision 4
* @param {Number} d Any Number
*/
export function round(d) {
// https://floating-point-gui.de/
// https://www.jacklmoore.com/notes/rounding-in-javascript/
return Number(Math.round(d + 'e4') + 'e-4');
}
}

Loading…
取消
儲存