unique
$unique
Returns a new array with duplicate values removed, preserving insertion order
of first occurrences. Uses identity-based (Set) deduplication.
Throws if the input is not an array.
Returns a new array with duplicate values removed, preserving insertion order
of first occurrences. Uses identity-based (Set) deduplication.
Throws if the input is not an array.