{
"id": "fn-string-length",
"dataComponent": "string",
"heading": {
"title": "length",
"badges": [
"String"
]
},
"synopsis": "Returns the length of a single string. If not a single string, raises an error.",
"codeBlocks": [
"extend(\"string\")\\n\\nsput( string:length(\"Hello, Boys!\") ) // => 12"
],
"notes": [
"Requires exactly one string argument, e.g., \"Hello, world!\"",
"Returns an integer value representing the character length of the string.",
"If you pass something else (like multiple strings or arrays), it raises an error."
]
}