Function isStrictUndefined

  • Checks if the provided value is undefined, a string value of "undefined" is NOT considered to be undefined.

    Parameters

    • arg: any

      The value to check

    Returns arg is undefined

    true if the typeof value === UNDEFINED

    Example

    isStrictUndefined(undefined);    // true

    isStrictUndefined(null); // false
    isStrictUndefined("null"); // false
    isStrictUndefined("undefined"); // false
    isStrictUndefined("1"); // false
    isStrictUndefined("aa"); // false
    isStrictUndefined(new Date()); // false
    isStrictUndefined(0); // false
    isStrictUndefined(1); // false
    isStrictUndefined(""); // false