Arrays
#
equalsCheck 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 |
#
randomGet 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 |
#
shuffleShuffles the provided array.
Property | Description | Type | Default | Required |
---|---|---|---|---|
array | Array to be shuffled. | array | ✔️ |