3h-iter 中文文档教程
3h-iter
迭代库。
Intro
3h-iter
是一个迭代库,为您提供一些与迭代器相关的帮助程序(如 map
、filter
、range
) 来处理迭代操作。 最好使用 3h-iter
和 ES2015+ 语法。 例如,
for (const i of range(5)) {
console.log(i);
}
// prints 0, 1, 2, 3, 4
Links
3h-iter
An iteration lib.
Intro
3h-iter
is an iteration library that provides you with some iterator-related helpers(like map
, filter
, range
) to deal with iteration operations. It is better to use 3h-iter
with ES2015+ syntax. For example,
for (const i of range(5)) {
console.log(i);
}
// prints 0, 1, 2, 3, 4