• Checks if value is null or undefined.

    Parameters

    • value: any

      The value to check.

    Returns value is undefined | null

    Returns true if value is nullish, else false.

    _.isNil(null);
    // => true

    _.isNil(void 0);
    // => true

    _.isNil(NaN);
    // => false