Skip to content

wikis Search Results · bucket language:JavaScript language:JavaScript language:JavaScript language:JavaScript language:PHP

45.8k results  (182 ms)

45.8k results

The language qualifier is not supported when searching wikis. Try searching for repositories instead?

desc: returns the length of the bucket returns: Number args: None

desc: writes over all values with the return from the given function returns: Bucket: Table args: Function note: clones the original bucket bucket:Map(function(Key, Value, Index, Type) return Value..Index end)

desc: writes over all keys with the return from the given function returns: Bucket: Table args: Function note: clones the original bucket bucket:MapKeys(function(Key, Value, Index, Type) return Key..Index end)

desc: deletes the last entry returns: None args: Offset: Number note: you can offset it down bucket:Pop() -- deletes the last entry bucket:Pop(1) -- deletes the second to last entry

desc: returns a normal table with all of the entries with bucket formatting returns: Entries: Table args: None

desc: adds a new entry at the start returns: None args: Entry: Object bucket:Pull("value") -- uni bucket:Pull({ key = "value" }) -- pair

desc: adds a new entry at the end returns: None args: Entry: Object bucket:Push("value") -- uni bucket:Push({ key = "value" }) -- pair

desc: renames a key returns: None args: Key: String, New Key: String bucket:Rename("key a", "key b")

desc: renames a key at an index returns: None args: Index: Number, New Key: String bucket:Rename(1, "key b")

desc: replaces mentions of a given string returns: Bucket: Table args: From: String, To: String note: clones the original bucket local bucket = Bucket.new({ "abc 123", { ["abc 123"] == "abc 123"} }) bucket:Replace("123", "def") -- (( "abc def", [ *abc def => "abc def" ] ))