Skip to content

Commit 739f3f7

Browse files
committed
Update docs
Signed-off-by: Flipez <[email protected]>
1 parent dab5f08 commit 739f3f7

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

docs/docs/builtins/Math.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,18 @@ Returns the IEEE 754 floating-point remainder of argument1/argument2
204204
```
205205

206206

207+
### round(FLOAT)
208+
> Returns `FLOAT`
209+
210+
Returns the nearest integer, rounding half away from zero
211+
212+
213+
```js
214+
🚀 > Math.round(73.3)
215+
=> 73.0
216+
```
217+
218+
207219
### sin(FLOAT)
208220
> Returns `FLOAT`
209221

docs/docs/literals/array.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,18 @@ Returns the amount of elements in the array.
7373
```
7474

7575

76+
### sort()
77+
> Returns `ARRAY`
78+
79+
Sorts the array if it contains only one type of STRING, INTEGER or FLOAT
80+
81+
82+
```js
83+
🚀 » [3.4, 3.1, 2.0].sort()
84+
» [2.0, 3.1, 3.4]
85+
```
86+
87+
7688
### uniq()
7789
> Returns `ARRAY|ERROR`
7890

0 commit comments

Comments
 (0)