Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/NativeScript/NativeScript
/ trim
Function
trim
packages/core/css/lib/parse/index.ts:559–561 ·
view source on GitHub ↗
* Trim `str`.
(str)
Source
from the content-addressed store, hash-verified
557
*/
558
559
function
trim(str) {
560
return
str ? str.replace(/^\s+|\s+$/g,
''
) :
''
;
561
}
562
563
/**
564
* Adds non-enumerable parent node reference to each node.
Callers
6
selector
Function · 0.85
declaration
Function · 0.85
atsupports
Function · 0.85
atmedia
Function · 0.85
atcustommedia
Function · 0.85
atdocument
Function · 0.85
Calls
1
replace
Method · 0.80
Tested by
no test coverage detected