for in switch typeof