MCPcopy Create free account
hub / github.com/aurelia/binding / unicodeEscape

Function unicodeEscape

test/parser.spec.js:911–913  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

909}
910
911function unicodeEscape(str) {
912 return str.replace(/[\s\S]/g, c => `\\u${('0000' + c.charCodeAt().toString(16)).slice(-4)}`);
913}

Callers 1

parser.spec.jsFile · 0.85

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected