Skip to content

Commit bb75a45

Browse files
committed
Add example
1 parent a18feeb commit bb75a45

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

  • lib/node_modules/@stdlib/array/shape

lib/node_modules/@stdlib/array/shape/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,19 @@ var shape = arrayShape( arr );
5555
// returns [ 3, 3 ]
5656
```
5757

58+
The function **ignores** inconsistent dimensions.
59+
60+
```javascript
61+
var arr = [
62+
[ 1, 2, 3 ],
63+
[ 4, 5, 6 ],
64+
[ 7, 8 ]
65+
];
66+
67+
var shape = arrayShape( arr );
68+
// returns [ 3 ]
69+
```
70+
5871
</section>
5972

6073
<!-- /.usage -->

0 commit comments

Comments
 (0)