check if a variable is undefined jquery

JavaScript
if (typeof value === "undefined") {
    // ...
}
Source

Also in JavaScript: