# get-depth

> Get the Depth of a Multi-Dimensional Array of Values

Latest version **0.0.3** (published 2021-09-29) · CC0-1.0 license · 0 weekly downloads

## Install

```sh
npm install get-depth
pnpm add get-depth
yarn add get-depth
bun add get-depth
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2021-09-29 |
| First published | 2020-09-06 |
| Weekly downloads | 0 |
| License | CC0-1.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Daniel J. Dufour |
| Maintainers | danieljdufour |
| Keywords | array, coordinates, depth, geojson, pixels, values |

## Links

- npm: https://www.npmjs.com/package/get-depth
- Repository: https://github.com/DanielJDufour/get-depth
- Homepage: https://github.com/DanielJDufour/get-depth#readme
- Issues: https://github.com/DanielJDufour/get-depth/issues
- npm.io page: https://npm.io/package/get-depth

## 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

- 0.0.3 (latest) — 2021-09-29
- 0.0.1 — 2020-12-20
- 0.0.0 — 2020-09-06

## README

# get-depth
 > Get the Depth of a Multi-Dimensional Array

# install
```bash
npm install get-depth
```

# usage
```javascript
const getDepth = require('get-depth');

const table = [
    [0, 1, 2, 3, 4, 5, 6, 7, 8 ], // first row
    [0, 1, 2, 3, 4, 5, 6, 7, 8 ] // second row
];

const depth = getDepth(table);
// depth is 2
```

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