Skip to content
New issue

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

伪数组并非具有.length方法,而是length属性 #51

Open
Kyeoni opened this issue Sep 25, 2020 · 0 comments
Open

伪数组并非具有.length方法,而是length属性 #51

Kyeoni opened this issue Sep 25, 2020 · 0 comments

Comments

@Kyeoni
Copy link

Kyeoni commented Sep 25, 2020

URL : http://liubin.org/promises-book/#ch2-promise-resolve

在2.1.2 thenable中有这样的描述:

就像我们有时称具有 .length 方法的非数组对象为Array like一样,thenable指的是一个具有 .then 方法的对象。

伪数组的描述不是非常准确。伪数组并非具有.length方法,而是length属性。

如有理解不到之处,还请指正。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant