wikis Search Results · bucket language:JavaScript language:JavaScript language:JavaScript linked:pr language:JavaScript
Filter by
45.7k results
Some qualifiers in your query (language, linked) are not supported when searching wikis. Try searching for issues instead?
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" ] ))
desc: replaces mentions of a given string in keys returns: Bucket: Table args: From: String, To: String note: clones the original bucket local bucket = Bucket.new({ "abc 123", { ["abc 123"] == "abc
desc: replaces mentions of a given string in values returns: Bucket: Table args: From: String, To: String note: clones the original bucket local bucket = Bucket.new({ "abc 123", { ["abc 123"] == "abc
desc: reverses (duh) returns: Bucket: Table args: None note: clones the original bucket local bucket = Bucket.new({ 1, 2, 3, "a", "b", "c" }) bucket:Reverse() -- (( "c", "b", "a", 3, 2, 1 ))
desc: sets the value of a key returns: None args: Key: String, New Value: Object bucket:Set("key", "value")
desc: sets the value at an index returns: None args: Index: Number, New Value: Object bucket:Set(1, "value")
desc: deletes the first entry returns: None args: Offset: Number note: you can offset it up bucket:Shift() -- deletes the first entry bucket:Shift(1) -- deletes the second to first entry
desc: loops through the insides and checks if ONLY ONE entry passes a given action returns: Boolean args: Function local bucket = Bucket.new({ "a", "b", "c" }) bucket:Some(function(Key, Value, Index
desc: sorts it (duh) returns: Bucket: Table args: Optional Direction: Function note: clones the original bucket local bucket = Bucket.new({ "b", 3, { key2 = "value" }, "c", "a", { key3 = "value" }, 1
desc: sorts it but with another table/bucket returns: Bucket: Table args: Sort By: Table Optional Direction: Function note: clones the original bucket local bucket = Bucket.new({ user1 = 5, user2