There's things we can optimize, like preventing new variable creations, using `typeof` instead of `instanceof`, etc. F.e. here's a test that shows `instanceof` being slower than `typeof`: - https://jsperf.com/typeof-vs-instanceof-for-object/2