In JavaScript, how do I say:
if (typeof obj === 'number'
|| typeof obj === 'boolean'
|| typeof obj === 'undefined'
|| typeof obj === 'string') {
In other words, is there some kind of:
if (typeof obj in('number','boolean','undefined','string')) {
More grist for the mill:
or
How many ways do you want this cat skinned?