Skip to content

Bucket:StartsWithVal()

paige edited this page Aug 17, 2023 · 1 revision
  • desc: checks if it starts with a given value
  • returns: Boolean
  • args: Value: Object
  • note: takes multiple arguments
local bucket = Bucket.new({
    { key1 = "value1" },
    { key2 = "value2" }
})

bucket:StartsWith("value1") -- true
bucket:StartsWith("value2") -- false

bucket:StartsWith("value1", "value2") -- true because one of them is true

Clone this wiki locally