import { is_what } from "https://deno.land/x/libpkgx@v0.17/src/deps.ts";
const { isOneOf } = is_what;
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
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
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
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