Skip to content

Bucket:ToUpperCase()

paige edited this page Aug 17, 2023 · 1 revision
  • desc: turns all string values to uppercase
  • returns: Bucket: Table
  • args: Optional Index: Number
  • note: clones the original bucket
  • note 2: takes multiple optional indexes, if none are given it changes all
local bucket = Bucket.new({ "abc", "def", { key == "value"} })

bucket:ToUpperCase() -- (( "ABC", "DEF", [ *key => "VALUE" ] ))

bucket:ToUpperCase(1) -- (( "ABC", "def", [ *key => "value" ] ))

bucket:ToUpperCase(1, 2) -- (( "ABC", "DEF", [ *key => "value" ] ))

bucket:ToUpperCase(1, 3) -- (( "ABC", "def", [ *key => "VALUE" ] ))

Clone this wiki locally