Skip to content

Bucket:Has()

paige edited this page Aug 17, 2023 · 2 revisions
  • desc: checks if it contains a given key
  • returns: Boolean
  • args: Key: String
local bucket = Bucket.new({
    "abc",
    { key1 = "value1" }
})

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

bucket:Get("key1") -- true
bucket:Get("key2") -- false

Clone this wiki locally