Skip to content

Bucket.is()

paige edited this page Aug 17, 2023 · 2 revisions
  • desc: checks if the given object is a bucket or not
  • returns: Boolean
  • args: Object
local bucket = Bucket.new({ 1, 2, 3 })
local nonbucket = { 1, 2, 3 }

Bucket.is(bucket) -- true
Bucket.is(nonbucket) -- false

Clone this wiki locally