摘要:
As we know we can read property value from an object as so: const obj = {} obj.xxxx; obj[xxxx]; So what's the difference between those two? obj.x ECMA 阅读全文
摘要:
Function.prototype.myBind = function (ctx, ...args) { const fn = this; return function (...subArgs) { console.log(new.target); const allArgs = [...arg 阅读全文
摘要:
The new.target meta-property lets you detect whether a function or constructor was called using the new operator. In constructors and functions invoke 阅读全文