Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
とa instanceof b正確に同等a.constructor === bですか? そうでない場合、両者の違いは何ですか?
a instanceof b
a.constructor === b
いいえ。
instanceof「継承された」コンストラクターもチェックします。
instanceof
詳細については、仕様を参照してください。(こことここ)