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
处理Array.prototype.fill的兼容性问题。 书上写的用map方法来做兼容,但是map方法返回的是一个新的数组,不符合 mdn 对Array.prototype.fill的定义,Array.prototype.fill会修改调用数组自身。
Array.prototype.fill
map
The text was updated successfully, but these errors were encountered:
感谢反馈
Sorry, something went wrong.
yanhaijing
No branches or pull requests
处理
Array.prototype.fill
的兼容性问题。书上写的用
map
方法来做兼容,但是map
方法返回的是一个新的数组,不符合 mdn 对Array.prototype.fill
的定义,Array.prototype.fill
会修改调用数组自身。The text was updated successfully, but these errors were encountered: