* Removes duplicate values from an array. * @param {array} array * @return {mixed} New array with unique items.
(array)
| 90 | * @return {mixed} New array with unique items. |
| 91 | */ |
| 92 | static unique (array) { |
| 93 | return array.filter((element, index) => array.indexOf(element) === index) |
| 94 | } |
| 95 | |
| 96 | /** |
| 97 | * Orders array elements randomly using Fisher–Yates modern shuffle algorithm. |
no test coverage detected