MCPcopy 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
1853function stringtrim (str) {
1854 if (str.trim) return str.trim()
1855 return str.replace(/^\s+|\s+$/g, '')
1856}
1857
1858var BP = Buffer.prototype
1859

Callers 1

BufferFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected