# isndarray

> Returns boolean whether the argument is a ndarray

Latest version **1.0.0** (published 2015-07-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install isndarray
pnpm add isndarray
yarn add isndarray
bun add isndarray
```

## 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 | 2015-07-22 |
| First published | 2013-07-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.8.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Kyle Robinson Young |
| Maintainers | shama, mikolalysenko, rreusser, planeshifter, jaspervdg, hughsk, substack |
| Keywords | ndarray, array, typed |

## Links

- npm: https://www.npmjs.com/package/isndarray
- Repository: https://github.com/scijs/isndarray
- Issues: https://github.com/scijs/isndarray/issues
- npm.io page: https://npm.io/package/isndarray

## Recent versions

- 1.0.0 (latest) — 2015-07-22
- 0.1.0 — 2013-07-06

## README

# isndarray

Returns boolean whether the argument is a [ndarray](https://github.com/mikolalysenko/ndarray).

## example

```js
var isnd = require('isndarray')
var ndarray = require('ndarray')

true === isnd(ndarray(new Int8Array(32 * 32), [32, 32]))
true === isnd(ndarray(new Float64Array(32)))
true === isnd(ndarray(new Uint32Array(4 * 4 * 4), [4, 4, 4]))

false === isnd(new Int8Array(32 * 32), [32, 32])
false === isnd(new View3dtrick16())
false === isnd(new View3dint8())

function View3dtrick16() {
  this.dtype = 'fake'
}
function View3dint8() {
  /* no .dtype */
}
```

## API
`isndarray(arr)` will return boolean whether an ndarray.

## install

With [npm](https://npmjs.org) do:

```
npm install isndarray
```

Use [browserify](http://browserify.org) to `require('isndarray')`.

## release history
* 0.1.0 - initial release

## license
Copyright (c) 2013 Kyle Robinson Young<br/>
Licensed under the MIT license.

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