We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
this
文章中,bind的polyfill中判断bind返回的方法是否被用作构造函数时用到的方法如下:
this instanceof fNOP && oThis ? this : oThis
私以为,此处不需要再判断oThis是否存在,直接
oThis
this instanceof fNOP ? this : oThis
即可。 毕竟bind的第一个参数可以传入null
null
The text was updated successfully, but these errors were encountered:
No branches or pull requests
文章中,bind的polyfill中判断bind返回的方法是否被用作构造函数时用到的方法如下:
私以为,此处不需要再判断
oThis
是否存在,直接即可。
毕竟bind的第一个参数可以传入
null
The text was updated successfully, but these errors were encountered: