Checks if the assertion passes or if the value is null or undefined.

const maybeString = nullish(string);

maybeString(1); // Error: type
maybeString("hello"); // passes
maybeString(null); // passes
maybeString(undefined); // passes