Skip to content

Bucket:StartsWith()

paige edited this page Aug 17, 2023 · 3 revisions
  • desc: checks if it starts with a given key
  • returns: Boolean
  • args: Key: String
  • note: takes multiple arguments
local bucket = Bucket.new({
    "abc",
    "def"
})

bucket:StartsWith("abc") -- true
bucket:StartsWith("def") -- false

bucket:StartsWith("abc", "def") -- true because one of them is true

Clone this wiki locally