Here’s the table of contents:

  1. Use typeof to check if variable exists

Use typeof to check if variable exists

		if (typeof this.actualSelection !== 'undefined') {
			// the variable actualSelection is defined
			console.log("actualSelection is defined")
		}

See!