includes

Function

Checks whether a value exists in the given array

  • includes(array: any[], val: any) : boolean

Parameters

Parameter Type Default Notes
array Required any[]

The array

val Required any

The value

Returns

boolean

Function defined in common/src/utils/includes.ts:6