Javascript Data Type Checker Is Undefined

Description

Javascript Data Type Checker Is Undefined



// Checks to see if something is a string
Object.isUndefined = function(obj) {
    return (typeof obj == 'undefined')
}

let a;/*from   w w w. j  a  va 2 s . c  om*/

console.log(Object.isUndefined(a));



PreviousNext

Related