• Determines whether the provided object is undefined or null.

    This function checks if the provided object is undefined or null. It is used to validate if the object has been assigned a value.

    Parameters

    • object: unknown

      The object to be checked. It can be of any type.

    Returns boolean

    true if the object is undefined or null, otherwise false.

    Example

    // Returns: true
    ix.api.is.isUndefinedOrNull(undefined);
    ix.api.is.isUndefinedOrNull(null);

    // Returns: false
    ix.api.is.isUndefinedOrNull("Hello, World!");
    ix.api.is.isUndefinedOrNull(0);
    ix.api.is.isUndefinedOrNull(false);