Contains tester

[data/array/Contains tester]


Tests whether the array contains a given item Example: Example:

  1. [1,2]@0 received via array

  2. 1@0 received via item

  3. true@0 sent via contains


Keywords: include

Input ports

  • array: any[]

    Recieves array look for the item in. Example: [1,2]

  • item: any

    Recieves item to find in the array. Example: 1

Output ports

  • contains: boolean

    Sends whether the item was found in the array. Example: true

Last updated