Pattern: Use of typeof x === 'undefined'
Issue: -
Do not use the idiom typeof x === 'undefined'
. You can safely use the
simpler x === undefined
or perhaps x == null
if you want to check
for either null or undefined.
Pattern: Use of typeof x === 'undefined'
Issue: -
Do not use the idiom typeof x === 'undefined'
. You can safely use the
simpler x === undefined
or perhaps x == null
if you want to check
for either null or undefined.