toUpper
Syntax
toUpper(input)<string>.toUpper()Arguments
Examples
toUpper("hello")
// "HELLO""hello world".toUpper()
// "HELLO WORLD"$ echo '{"status": "active"}' | dasel -i json 'status.toUpper()'
ACTIVELast updated
Converts a string to uppercase.
toUpper(input)or chained:
<string>.toUpper()input (string, optional when chained) - The string to convert.
Function call
toUpper("hello")
// "HELLO"Chained usage
"hello world".toUpper()
// "HELLO WORLD"CLI usage
$ echo '{"status": "active"}' | dasel -i json 'status.toUpper()'
ACTIVETransform all values in an array
Last updated
["alice", "bob"].map(toUpper($this))
// ["ALICE", "BOB"]