how to check type of undefined in jquery code example Example: jquery typeof undefined if (typeof value === "undefined") { // ... }