File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,12 @@ Produces a new table containing all elements that pass truth test
48
48
* array.<code >reduce(object: table , callback: function [ , memo] ):* </code ><br />
49
49
Applies a function against an accumulator and each value of the table to reduce it to a single value
50
50
51
+ * array.<code >reduce_right(object: table , callback: function [ , memo] ):* </code ><br />
52
+ Works like ` reduce ` except that it interates over table's elements from right to left
53
+
54
+ * array.<code >sum(object: table ): number </code ><br />
55
+ Returns the sum of the values of the table passed by parameter
56
+
51
57
* array.<code >concat(object: table , object: table ): table </code ><br />
52
58
Returns a new table by joining all values from the two tables
53
59
@@ -81,3 +87,6 @@ Creates a new table with the sub-table elements concatenated into it
81
87
* array.<code >fill(value:* , [ start: number ] , end: number ): table </code ><br />
82
88
Creates a table filling all the elements from a start index (default
83
89
one) to an end index with a default value passed by parameter.
90
+
91
+ * array.<code >remove(object: table , callback: function ): table </code ><br />
92
+ Removes all elements from table that ` callback ` returns thruthy for and returns a new table with the removed elements
You can’t perform that action at this time.
0 commit comments