* Checks whether or not an array contains any duplicate elements * @param {array} array - the array to check * @return {boolean} - true or false
(array: any[])
| 3547 | * @return {boolean} - true or false |
| 3548 | */ |
| 3549 | isArrayUnique(array: any[]) { |
| 3550 | return new Set(array).size === array.length; |
| 3551 | } |
| 3552 | |
| 3553 | // --- PUBLIC FUNCTIONS --- // |
| 3554 |
no outgoing calls
no test coverage detected