Skip to content

Commit 97b694a

Browse files
committed
update readme
1 parent 5274ede commit 97b694a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ Produces a new table containing all elements that pass truth test
4848
* array.<code>reduce(object:table, callback:function [, memo]):*</code><br />
4949
Applies a function against an accumulator and each value of the table to reduce it to a single value
5050

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+
5157
* array.<code>concat(object:table, object:table):table</code><br />
5258
Returns a new table by joining all values from the two tables
5359

@@ -81,3 +87,6 @@ Creates a new table with the sub-table elements concatenated into it
8187
* array.<code>fill(value:*, [start:number], end:number):table</code><br />
8288
Creates a table filling all the elements from a start index (default
8389
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

0 commit comments

Comments
 (0)