{
"id": "fn-string-trim",
"dataComponent": "string",
"heading": {
"title": "trim",
"badges": ["String"]
},
"synopsis": "Removes leading and trailing whitespace from a single string.",
"codeBlocks": [
"extend(\"string\")\n\nsput( string:trim(\" hello world \") )\n# => \"hello world\""
],
"notes": [
"Takes exactly one string argument.",
"Returns the trimmed string.",
"If not a single string, raises an error."
]
}