Function isNull

  • Returns true if the given object is strictly null. Otherwise, returnsfalse.

    const util = require('util');

    util.isNull(0);
    // Returns: false
    util.isNull(undefined);
    // Returns: false
    util.isNull(null);
    // Returns: true

    Deprecated

    Since v4.0.0 - Use value === null instead.

    Parameters

    • object: unknown

    Returns object is null

  • Returns true if the given object is strictly null. Otherwise, returnsfalse.

    const util = require('util');

    util.isNull(0);
    // Returns: false
    util.isNull(undefined);
    // Returns: false
    util.isNull(null);
    // Returns: true

    Deprecated

    Since v4.0.0 - Use value === null instead.

    Parameters

    • object: unknown

    Returns object is null

Generated using TypeDoc