# ab-binrange

> Iteration in the way binary search iterate

Latest version **1.0.0** (published 2019-12-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install ab-binrange
pnpm add ab-binrange
yarn add ab-binrange
bun add ab-binrange
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-12-29 |
| First published | 2019-12-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | AndrewBeletskiy |
| Maintainers | andrewbeletskiy |
| Keywords | data, structure, binary, search |

## Links

- npm: https://www.npmjs.com/package/ab-binrange
- Repository: https://github.com/whiteand/ab-binrange
- Homepage: https://github.com/whiteand/ab-binrange#readme
- Issues: https://github.com/whiteand/ab-binrange/issues
- npm.io page: https://npm.io/package/ab-binrange

## Dependencies (1)

- [ab-queue](https://npm.io/package/ab-queue.md) ^1.0.0

## Alternatives

- [gamedig](https://npm.io/package/gamedig.md) — 29.3K weekly downloads
- [join-monster](https://npm.io/package/join-monster.md) — 12.8K weekly downloads
- [masked](https://npm.io/package/masked.md) — 5.5K weekly downloads
- [@comunica/actor-query-process-explain-logical](https://npm.io/package/@comunica/actor-query-process-explain-logical.md) — 4.7K weekly downloads
- [@veracity/vui](https://npm.io/package/@veracity/vui.md) — 4.6K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2019-12-29

## README

# Binary Range

This is something that will help me to iterate through array in a way binary search could go.

## xbinrange

`xbinrange(from, to[, step])` - is a function generator of values between `from` and `to` in order of binary division

## binrange

`binrange(from, to[, step])` - is a function that returns array of values between `from` and `to` in order of binary division with such step between values


## Example

```typescript
[...xbinrange(0, 7)] // [3,1,5,0,2,4,6]
[...xbinrange(0, 5.1, 0.25)]
// [2.5, 1.25, 4, 0.5, 2, 3.25, 4.75, 0.25, 1, 1.75, 2.25, 3, 3.75, 4.5, 5, 0, 0.75, 1.5, 2.75, 3.5, 4.25]
```

---
_Source: https://npm.io/package/ab-binrange · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
