# nd-array

> n dimension array

Latest version **1.0.0** (published 2017-01-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install nd-array
pnpm add nd-array
yarn add nd-array
bun add nd-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 | 2017-01-28 |
| First published | 2017-01-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.4.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Bean Li |
| Maintainers | warfrog |
| Keywords | util, array, dimension, n |

## Links

- npm: https://www.npmjs.com/package/nd-array
- Repository: https://github.com/warfrogsdf/n-array
- Homepage: https://github.com/warfrogsdf/n-array#readme
- Issues: https://github.com/warfrogsdf/n-array/issues
- npm.io page: https://npm.io/package/nd-array

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.0 (latest) — 2017-01-28

## README

# n-array

the solution of n dimension array for node env!!!

## Usage

```javascript
// import n-array lib
let NArray = require("./index");

// create 3*4*5 array and defaultValue is undefined
let nArray1 = NArray([3,4,5]);
// P1
console.log('P1' + nArray1.get(0,0,0));

// create 3*4*5 array and defaultValue is 'tai'
let nArray2 = NArray([3,4,5], 'tai');
// P2
console.log('p2' + nArray2.get(2,3,4));

// set value 3 to index of(1,1,1)
nArray2.set(1,1,1, 3);
nArray2.set(1,1,2, 4);

// P3 can print 3
console.log('p4' + nArray2.get(1,1,1));

// P4 can print 4
console.log('p5' + nArray2.get(1,1,2));
```

## Tests

    $ node test.js

## Credits

  - [Bean Li](https://github.com/warfrogsdf)

## License

[The MIT License](http://opensource.org/licenses/MIT)

Copyright (c) 2013 Bean Li

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