+2
-1
lines changedFilter options
+2
-1
lines changed Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
1
1
/**
2
2
* Left pads the given number with '0'.
3
-
* @method zeroPadded
3
+
* @method formatZeroPadded
4
4
* @param {Number} number to format
5
5
* @param {Number} [toDigits=2] supports only positive numbers
6
6
* @return {String} formatted value
7
+
* @preserve
7
8
*/
8
9
export const formatZeroPadded = (number, toDigits = 2) => {
9
10
const zeroPads = Array(toDigits).fill("0").join("") + number;
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4