js-util

Home > rc-js-util > arrayUnique

arrayUnique() function

Creates a new array with no duplicates, using standard object equality.

Signature:

export declare function arrayUnique<TItem>(items: ArrayLike<TItem>): TItem[];

Parameters

Parameter Type Description
items ArrayLike<TItem>  

Returns:

TItem[]

Remarks

See arrayUnique().