(items: T[])
| 182 | * @param items |
| 183 | */ |
| 184 | export function _arrayUnique<T>(items: T[]) { |
| 185 | const set = new Set<T>(items); |
| 186 | |
| 187 | if (set.size === items.length) { |
| 188 | return items; |
| 189 | } |
| 190 | |
| 191 | return Array.from(set); |
| 192 | } |
no outgoing calls
no test coverage detected