also the number of string compares i have to do because of javascript's lack of both enums and type literals makes my skin crawl
i have some code that's like
if(typeof arg === 'string'){ //do something}else if(typeof arg === 'object'){ //do something else}
and looking at it makes me feel a deep shame