Skip to main content

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

NameTypeRequired
arrayArray<any>
searchedItemany

Outputs

NameType
resultboolean

Examples

Inputs Outputs
array searchedItem result
[ 5, 6, 8 ] 7 false
[ 5, 6, 8 ] "Elephant" false
[ 5, 6, 8 ] 6 true