Simple, mutually exclusive nodejs type testing