Closed rajendraarora16 closed 6 years ago
undefined == null // true
also I think what you were trying to do is typeof this.optimized == 'undefined' instead of this.optimized == 'undefined', otherwise you are comparing against a literal string 'undefined'
typeof this.optimized == 'undefined'
this.optimized == 'undefined'
'undefined'
also I think what you were trying to do is
typeof this.optimized == 'undefined'
instead ofthis.optimized == 'undefined'
, otherwise you are comparing against a literal string'undefined'