This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

is-2d-array

1.1.1 • Public • Published

is-2d-array Build Status

Check if array is 2D

Install

$ npm install --save is-2d-array

Usage

const is2dArray = require('is-2d-array');

is2dArray([['1', '2'], ['3', '4']]);
//=> true

is2dArray(['1', '2', '3', '4']);
//=> false

is2dArray([['1', '2'], '3', '4']);
//=> false

is2dArray([['1'], ['2'], ['3'], ['4']]);
//=> true

API

is2dArray(array)

Returns an boolean based on if it's a true 2D array or not.

License

MIT © Lukasz Brodowski

Readme

Keywords

Package Sidebar

Install

npm i is-2d-array

Weekly Downloads

2

Version

1.1.1

License

MIT

Unpacked Size

2.99 kB

Total Files

7

Last publish

Collaborators

  • lukebro