We’ll start with the most far-reaching addition, which the spec describes as “a new Iterator global with associated static and prototype methods for working with iterators.” The most exciting part of ...
在es6中,能表示“集合”概念的数据类型大致有四种。 Array,Object,Map,Set 既然是集合,那遍历便是一种基本需求。 而Iterator就是为了提供一种统一的接口机制。 任何的数据结构,只要部署了Iterator接口,便可以使用类似的方式完成遍历操作。
Some results have been hidden because they may be inaccessible to you
Show inaccessible results