unique<T>
Collects the array’s distinct values, keeping the order of their first occurrence.
Import:
import 'obsidian-test-mocks/setup';Signature:
function unique(this: T[]): T[]Parameters:
| Parameter | Type | Description |
|---|---|---|
this |
T[] |
Returns: T[] — A new array without duplicates.