JavaScript: check if variable exists / is defined / is initialized johayek 8 years ago http://stackoverflow.com/a/6509422/3119172 Share this: