https://github.com/iterable-iterator/select
:point_down: Iterable item selection for JavaScript
https://github.com/iterable-iterator/select
Last synced: 11 months ago
JSON representation
:point_down: Iterable item selection for JavaScript
- Host: GitHub
- URL: https://github.com/iterable-iterator/select
- Owner: iterable-iterator
- License: agpl-3.0
- Created: 2021-05-04T13:25:46.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2025-07-13T00:49:58.000Z (11 months ago)
- Last Synced: 2025-07-13T02:38:35.098Z (11 months ago)
- Language: JavaScript
- Homepage: https://iterable-iterator.github.io/select
- Size: 2.08 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
:point_down: [@iterable-iterator/select](https://iterable-iterator.github.io/select)
==
Iterable item selection for JavaScript.
See [docs](https://iterable-iterator.github.io/select/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 {first, last, nth} from '@iterable-iterator/select';
import {range} from '@iterable-iterator/range';
first(range(10)); // 0
last(range(10)); // 9
nth(range(10), 0); // 0
nth(range(10), -1); // 9
nth(range(10), -3); // 7
```
[](https://raw.githubusercontent.com/iterable-iterator/select/main/LICENSE)
[](https://www.npmjs.org/package/@iterable-iterator/select)
[](https://github.com/iterable-iterator/select/actions/workflows/ci.yml?query=branch:main)
[](https://github.com/iterable-iterator/select/network/dependencies)
[](https://github.com/iterable-iterator/select/issues)
[](https://www.npmjs.org/package/@iterable-iterator/select)
[](https://codeclimate.com/github/iterable-iterator/select/issues)
[](https://codeclimate.com/github/iterable-iterator/select/trends/churn)
[](https://codecov.io/gh/iterable-iterator/select)
[](https://codeclimate.com/github/iterable-iterator/select/trends/technical_debt)
[](https://iterable-iterator.github.io/select/source.html)
[](https://bundlephobia.com/result?p=@iterable-iterator/select)