notArrayWith()function
notArrayWith(left: unknown, right: unknown): boolean
| Param | Type | |
|---|---|---|
left | unknown | The value to check. required |
right | unknown | 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