js-util

Home > rc-js-util > arrayContains

arrayContains() function

Returns true if the item is present in the list (=== equality test).

Signature:

export declare function arrayContains<TItem>(items: readonly TItem[], item: TItem): boolean;

Parameters

Parameter Type Description
items readonly TItem[]  
item TItem  

Returns:

boolean

Remarks

See arrayContains().