Home > rc-js-util > arrayContains
Returns true if the item is present in the list (=== equality test).
Signature:
export declare function arrayContains<TItem>(items: readonly TItem[], item: TItem): boolean;
Parameter | Type | Description |
---|---|---|
items | readonly TItem[] | |
item | TItem |
Returns:
boolean
See arrayContains().