0.11.0 • Published 9 months ago

@jasonsbarr/iterable v0.11.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

@jasonsbarr/iterable

A collection of iterable functions that work equally well on plain JavaScript arrays and other indexed iterables that implement a simple specification: they have a constructor method that doesn't take the new keyword.

Basic Usage

Just import the functions you need. They work with arrays just fine, or you can use another iterable type as long as it has a constructor method that doesn't require using new.

import { reject } from "@jasonsbarr/iterable/lib/reject";
import { isEven } from "@jasonsbarr/functional-core/lib/predicates/isEven";

const nums = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
const odds = reject(isEven, nums);
console.log(odds); // -> [1, 3, 5, 7, 9]

Documentation

Documentation

0.11.0

9 months ago

0.10.0

10 months ago

0.9.3

2 years ago

0.5.4

2 years ago

0.8.0

2 years ago

0.7.1

2 years ago

0.9.2

2 years ago

0.5.5

2 years ago

0.5.0

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.7.0

2 years ago

0.5.2

2 years ago

0.6.0

2 years ago

0.4.2

3 years ago

0.3.0

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.2.2

3 years ago

0.3.3

3 years ago

0.2.0

3 years ago

0.1.5

3 years ago

0.1.2

3 years ago