MCPcopy Index your code
hub / github.com/vercel/hyper / numeric

Function numeric

bin/yarn-standalone.js:52524–52528  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

52522var escPeriod = '\0PERIOD'+Math.random()+'\0';
52523
52524function numeric(str) {
52525 return parseInt(str, 10) == str
52526 ? parseInt(str, 10)
52527 : str.charCodeAt(0);
52528}
52529
52530function escapeBraces(str) {
52531 return str.split('\\\\').join(escSlash)

Callers 1

expandFunction · 0.70

Calls 1

parseIntFunction · 0.85

Tested by

no test coverage detected