notArrayWith()function

notArrayWith(left: unknown, right: unknown): boolean
ParamType
leftunknown
The value to check. required
rightunknown
The item the array must include. required
Return
boolean
true if left is not an array or does not include right.

Is unknown value left not an array, or an array that does not include right?

Examples

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