MCPcopy Index your code
hub / github.com/prettier/prettier / characterCode

Function characterCode

tests/format/json/json-superset/format.test.js:11–12  ·  view source on GitHub ↗
(character)

Source from the content-addressed store, hash-verified

9
10const characters = [LINE_SEPARATOR, PARAGRAPH_SEPARATOR, UNDERSCORE, SPACE];
11const characterCode = (character) =>
12 `U+${character.charCodeAt(0).toString(16).toUpperCase().padStart(4, "0")}`;
13
14runFormatTest(
15 {

Callers 1

format.test.jsFile · 0.85

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…