Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
911
function
unicodeEscape(str) {
912
return
str.replace(/[\s\S]/g, c => `\\u${(
'0000'
+ c.charCodeAt().toString(16)).slice(-4)}`);
913
}
Callers
1
parser.spec.js
File · 0.85
Calls
1
toString
Method · 0.80
Tested by
no test coverage detected