Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/stemkoski/stemkoski.github.com
/ stringtrim
Function
stringtrim
MathBox/mathbox-core.js:1853–1856 ·
view source on GitHub ↗
(str)
Source
from the content-addressed store, hash-verified
1851
// ================
1852
1853
function
stringtrim (str) {
1854
if
(str.trim)
return
str.trim()
1855
return
str.replace(/^\s+|\s+$/g,
''
)
1856
}
1857
1858
var
BP = Buffer.prototype
1859
Callers
1
Buffer
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected