notInArray()function

notInArray(left: unknown, right: ImmutableArray): boolean
ParamType
leftunknown
The value to look for. required
rightImmutableArray
The array to search within. required
Return
boolean
true if left is not an item of right.

Is unknown value left not in array right?

Examples

notInArray(9, [1, 2, 3]) // true