MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / toHex

Method toHex

javascript/selenium-webdriver/lib/color.js:96–96  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

94 */
95 asHex() {
96 const toHex = (n) => n.toString(16).padStart(2, '0')
97 return `#${toHex(this.red_)}${toHex(this.green_)}${toHex(this.blue_)}`
98 }
99

Callers 4

tinymce.min.jsFile · 0.80
tFunction · 0.80
SFunction · 0.80
lFunction · 0.80

Calls 1

toStringMethod · 0.65

Tested by

no test coverage detected