Skip to content

Bucket:EndsWith()

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

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

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

Clone this wiki locally