jquery undefined if typeof code example Example: jquery typeof undefined if (typeof value === "undefined") { // ... }