Checks if a given item is in a readonly array, acting as a typeguard.
Needle
Readonly array haystack
Whether the item is in the array, and narrows the type of the item.
Checks if a given item is in a readonly array, acting as a typeguard.