@reldens/utils 0.15.0 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/shortcuts.js +5 -0
  2. package/package.json +1 -1
package/lib/shortcuts.js CHANGED
@@ -175,6 +175,11 @@ class Shortcuts
175
175
  }
176
176
  return result;
177
177
  }
178
+
179
+ numberWithDecimals(number, decimals = 0)
180
+ {
181
+ return Number(Number(number).toFixed(decimals));
182
+ }
178
183
  }
179
184
 
180
185
  module.exports = new Shortcuts();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@reldens/utils",
3
3
  "scope": "@reldens",
4
- "version": "0.15.0",
4
+ "version": "0.16.0",
5
5
  "description": "Reldens - Utils",
6
6
  "author": "Damian A. Pastorini",
7
7
  "license": "MIT",