- shapeOfArray2D<T>(arr2d): [rows: number, columns: number]
Returns [rows: number, columns: number]
- shapeOfArray2D<T>(arr2d): [columns: number, rows: number]
Returns [columns: number, rows: number]
- shapeOfArray2D<T>(arr2d): [major_length: number, minor_length: number]
Returns [major_length: number, minor_length: number]
get the shape of a 2d array as a 2-tuple describing the major-axis's length, and the minor-axis's length.
Example