A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/joma74/vuejs-one-starter/commit/ddae1b746eae46caee6ed6f086a60d1b702abf80 below:

Corrected jsdoc method comment · joma74/vuejs-one-starter@ddae1b7 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+2

-1

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+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