MCPcopy Create free account
hub / github.com/reactjs/react-rails / toHex

Function toHex

lib/assets/javascripts/JSXTransformer.js:1640–1643  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

1638}
1639
1640function toHex (n) {
1641 if (n < 16) return '0' + n.toString(16)
1642 return n.toString(16)
1643}
1644
1645function utf8ToBytes (string, units) {
1646 units = units || Infinity

Callers 1

hexSliceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected