Skip to content

ES6:Iterator、Gengerator、Async/Await | idkhts's blog #23

Description

@IDKHTS

https://idkhts.github.io/2021/08/07/ES6-Iterator%E3%80%81Gengerator%E3%80%81Async-Await/

Iterator概念iterator遍历器,为了给js中多种的数据结构(原来的Array,String和ES6的Set,Map)加一个统一简单的调用,加上了一个Iterator接口,可以统一使用for...of来按一定顺序遍历数据结构。【嗯,还有扩展运算符...】 ES6为以下一些结构实现了iterator接口 Array String Set Map arguments NodeList 【

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions