Skip to content

is2dArray JavaScriptDart

Returns true if the given array is a two-dimensional array.

Parameters

  • array::any[]

Returns

boolean

Examples

javascript
is2dArray([1]); // Returns false
is2dArray([[1], [2]]); // Returns true

Released under the MIT License