Includes
Module Info:
moduleType: "internal",
moduleName: "includes"
Description
The includes
function returns true or false weather the given array includes the searched item or not.
Inputs
Name | Type | Required |
---|---|---|
array | Array<any> | ✔ |
searchedItem | any | ✔ |
Outputs
Name | Type |
---|---|
result | boolean |
Examples
Inputs | Outputs | |
---|---|---|
array | searchedItem | result |
[ 5, 6, 8 ] | 7 | false |
[ 5, 6, 8 ] | "Elephant" | false |
[ 5, 6, 8 ] | 6 | true |