Remove hasOwnProperty call from typeOf.
Remove hasOwnProperty call from typeOf.

Also note down a potential further optimization to inline typeOf calls if the compiler can sufficiently narrow down an argument's type.

marcopennekamp/lore,marcopennekamp/lore