Arrays
equals#
Check if two arrays are equal.
| Property | Description | Type | Default | Required |
|---|---|---|---|---|
array1 | First array. | array | ✔️ | |
array2 | Second array. | array | ✔️ | |
ordered | Sorts both arrays before comparison. | boolean | false |
random#
Get one or more random elements from a provided array. Those returned elements could be repeated.
| Property | Description | Type | Default | Required |
|---|---|---|---|---|
array | Source array. | array | ✔️ | |
quantity | Amount of random elements to be returned. | number | 1 |
shuffle#
Shuffles the provided array.
| Property | Description | Type | Default | Required |
|---|---|---|---|---|
array | Array to be shuffled. | array | ✔️ |