The arrayIncludes task determines whether an array includes a given element and returns true or false as appropriate. When used with a fromIndex value, you can specify where in the array the search should begin.
Suppose you have a list of email addresses and want to check whether a certain address is in that list. Specify the address you’re looking for — if it is present, the result is true; if not found, the result is false.
In this example:
["1","2","3"].searchElement to find is the number 2.fromIndex defaults to 0.result is true because 2 is present in the array.