includes

Modified on Tue, 04 Apr 2023

Use this function to check if `value` is in `collection`. If `collection` is a string, it's checked for a substring of `value`, otherwise is used for equality comparisons.

Syntax

includes(collection:Dictionary | NumericDictionary | null | undefined, target:T, fromIndex:number):