- includes<V>(search, startIndex?): ((source: V extends string
? string | readonly unknown[]
: readonly unknown[]) => boolean) Parameters
- search: V
Optional
startIndex: number
Returns ((source: V extends string
? string | readonly unknown[]
: readonly unknown[]) => boolean)
- (source): boolean
Parameters
- source: V extends string
? string | readonly unknown[]
: readonly unknown[]
Returns boolean
Checks if a value is included in a source array or string.
Example