Determine and test types using constructor or {}.toString
github.com/stephenhandley/type-of-is
stephenhandley/type-of-is