Function isNotNullish

  • Nullish refers to null or undefined.

    Example

    import * as G from "flurp/guard";

    G.isNotNullish({}); // true
    G.isNotNullish(null); // false
    G.isNullNullish(undefined); // false

    Parameters

    • x: unknown

    Returns boolean