# iota-array

> Generates an array of consecutive integers starting at 0

Latest version **1.0.0** (published 2014-04-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install iota-array
pnpm add iota-array
yarn add iota-array
bun add iota-array
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2014-04-28 |
| First published | 2013-04-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Mikola Lysenko |
| Maintainers | mikolalysenko |
| Keywords | iota, array, sequence, integer, range, apl, c++ |

## Links

- npm: https://www.npmjs.com/package/iota-array
- Repository: https://github.com/mikolalysenko/iota-array
- Issues: https://github.com/mikolalysenko/iota-array/issues
- npm.io page: https://npm.io/package/iota-array

## Recent versions

- 1.0.0 (latest) — 2014-04-28
- 0.0.1 — 2013-06-26
- 0.0.0 — 2013-04-04

## README

# iota-array
Fills an array with sequential integers.  Just like [C++'s `std::iota()`](http://www.sgi.com/tech/stl/iota.html) or the similarly named function in [APL](http://en.wikipedia.org/wiki/Iota).

## Install

    npm install iota-array
    
## Example

```javascript

console.log(require("iota-array")(3))

//Prints:
//
//    [0,1,2]
//

```

## `require("iota-array")(n)`
Constructs an array of length `n` of `n` sequential integers starting from 0.

* `n` the length of the array to construct

**Returns:** An array of n sequential integers starting at 0

# Credits
(c) 2013 Mikola Lysenko. MIT License

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