MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / pad

Function pad

javascript/selenium-webdriver/lib/logging.js:552–558  ·  view source on GitHub ↗

* Pads a number to ensure it has a minimum of two digits. * * @param {number} n the number to be padded. * @return {string} the padded number.

(n)

Source from the content-addressed store, hash-verified

550 * @return {string} the padded number.
551 */
552function pad(n) {
553 if (n >= 10) {
554 return '' + n
555 } else {
556 return '0' + n
557 }
558}
559
560/**
561 * Logs all messages to the Console API.

Callers 1

consoleHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected