(arr: T)
| 149 | * @internal please do not use. |
| 150 | */ |
| 151 | export function deDuplicate<T extends any[]>(arr: T): T { |
| 152 | if (typeof Set === 'function') { |
| 153 | return [...new Set(arr)] as T; |
| 154 | } else { |
| 155 | return arr.filter((x, i) => arr.indexOf(x) === i) as T; |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | /** |
| 160 | * @internal please do not use. |
no outgoing calls
no test coverage detected