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(items: TTypedArray, item: number): boolean;

Parameters

Parameter Type Description
items TTypedArray  
item number  

Returns:

boolean

Remarks

See arrayContains().