wikis Search Results · bucket language:JavaScript language:JavaScript language:JavaScript language:JavaScript
Filter by
45.6k results
The language qualifier is not supported when searching wikis. Try searching for repositories instead?
desc: returns the first value returns: Value: Object args: Offset: Number note: you can offset it up
desc: returns the first entry returns: Entry: Table args: Offset: Number note: you can offset it up
desc: returns the first key returns: Key: String args: Offset: Number note: you can offset it up
desc: returns the type of the first entry returns: Type: String args: Offset: Number note: you can offset it up
desc: loops through the insides and makes a new bucket with the returns of the action given returns: Returns: Bucket args: Function bucket:ForBack(function(Key, Value, Index, Type) return Value end)
desc: loops through the insides and runs the action given returns: None args: Function bucket:ForEach(function(Key, Value, Index, Type) print(Key, Value, Index, Type) end)
desc: returns the value of a key returns: Value: Object args: Key: String local bucket = Bucket.new({ "abc", { key = "value" } }) bucket:Get("abc") -- "abc" bucket:Get("key") -- "value"
desc: returns the entry of a key returns: Entry: Table args: Key: String note: equivalent to doing this: Bucket[ Bucket:IndexOf( Key ) ] local bucket = Bucket.new({ "abc", { key = "value" } }) bucket:GetEntry("abc") -- { 1, "abc", "uni" } bucket:GetEntry("key") -- { "key", "value", "pair" }
desc: returns the type of a key returns: Type: String args: Key: String local bucket = Bucket.new({ "abc", { key = "value" } }) bucket:GetType("abc") -- "uni" bucket:GetType("key") -- "pair"
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