import { isOneOf } from "https://deno.land/x/is_what@v4.1.15/dist/index.d.ts";
A factory function that creates a function to check if the payload is one of the given types.
Examples
import { isOneOf, isNull, isUndefined } from 'is-what'
import { isOneOf, isNull, isUndefined } from 'is-what'
const isNullOrUndefined = isOneOf(isNull, isUndefined)
isNullOrUndefined(null) // true isNullOrUndefined(undefined) // true isNullOrUndefined(123) // false