https://github.com/iterable-iterator/filter
:speak_no_evil: Iterable filtering functions for JavaScript
https://github.com/iterable-iterator/filter
Last synced: 3 months ago
JSON representation
:speak_no_evil: Iterable filtering functions for JavaScript
- Host: GitHub
- URL: https://github.com/iterable-iterator/filter
- Owner: iterable-iterator
- License: agpl-3.0
- Created: 2021-04-28T09:54:42.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-04-12T02:10:41.000Z (3 months ago)
- Last Synced: 2025-04-12T03:22:51.010Z (3 months ago)
- Language: JavaScript
- Homepage: https://iterable-iterator.github.io/filter
- Size: 3.12 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
:speak_no_evil: [@iterable-iterator/filter](https://iterable-iterator.github.io/filter)
==Iterable filtering functions for JavaScript.
See [docs](https://iterable-iterator.github.io/filter/index.html).> :warning: Depending on your environment, the code may require
> `regeneratorRuntime` to be defined, for instance by importing
> [regenerator-runtime/runtime](https://www.npmjs.com/package/regenerator-runtime).```js
import {count} from '@iterable-iterator/count';
import {filter, filterfalse} from '@iterable-iterator/filter';
import {divisible} from '@functional-abstraction/predicate';filter( divisible( 2 ) , count( 0 , 1 ) ) ; // 0 2 4 8 ...
filterfalse( divisible( 2 ) , count( 0 , 1 ) ) ; // 1 3 5 7 ...import {cycle} from '@iterable-iterator/cycle';
import {compress} from '@iterable-iterator/filter';
compress( count( 0 , 1 ) , cycle( [ true , false ] ) ) ; // 0 2 4 6 ...
```[](https://raw.githubusercontent.com/iterable-iterator/filter/main/LICENSE)
[](https://www.npmjs.org/package/@iterable-iterator/filter)
[](https://github.com/iterable-iterator/filter/actions/workflows/ci.yml?query=branch:main)
[](https://github.com/iterable-iterator/filter/network/dependencies)
[](https://github.com/iterable-iterator/filter/issues)
[](https://www.npmjs.org/package/@iterable-iterator/filter)[](https://codeclimate.com/github/iterable-iterator/filter/issues)
[](https://codeclimate.com/github/iterable-iterator/filter/trends/churn)
[](https://codecov.io/gh/iterable-iterator/filter)
[](https://codeclimate.com/github/iterable-iterator/filter/trends/technical_debt)
[](https://iterable-iterator.github.io/filter/source.html)
[](https://bundlephobia.com/result?p=@iterable-iterator/filter)