Przemysław Lib
Aug 23, 2017 · 1 min read

instanceof just check prototype chain

Object itself can have different definitions of properties and methods then those from its constructor.

Javascript happily accepts monkey patching.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/instanceof

)