主题
仲灏·约 1 分钟
instanceof 的原理是什么,请用代码来表示
例如 a instanceof b 就是:顺着 a 的 __proto__ 链向上找,能否找到 b.prototype
a instanceof b
a
__proto__
b.prototype
代码参考 instanceof.ts
欢迎留下想法与补充
讨论区
欢迎留下想法与补充