Function isNullish

  • Nullish refers to null or undefined.

    Example

    import * as G from "flurp/guard";

    G.isNullish(null); // true
    G.islNullish(undefined); // true
    G.isNullish({}); // false

    Parameters

    • x: unknown

    Returns boolean