{
"id": "fn-array-lower",
"dataComponent": "array",
"heading": {
"title": "lower",
"badges": ["Array"]
},
"synopsis": "Converts each string in a str-array to lowercase.",
"codeBlocks": [
"extend(\"array\")\\n\\n// Convert all strings in an array to lowercase\\nsput( array:lower([\"Hello\", \"WORLD\", \"Mu\"]) )\\n// => [\"hello\", \"world\", \"mu\"]\\n\\n// If you pass a single string or a non-string array, an error is raised."
],
"notes": [
"Accepts exactly one argument, which must be a str-array (e.g. [\"Hello\",\"WORLD\"]).",
"Returns a new array of strings, each converted to lowercase.",
"If you pass anything else (a single string, int array, bool array, etc.), it raises an error."
]
}