We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b796655 + 3cf5b60 commit afb84e5Copy full SHA for afb84e5
convert.js
@@ -5,7 +5,7 @@ var do_convert = require("./doConvert.js")
5
6
module.exports = function convert(arr, result) {
7
var shape = [], c = arr, sz = 1
8
- while(c instanceof Array) {
+ while(Array.isArray(c)) {
9
shape.push(c.length)
10
sz *= c.length
11
c = c[0]
0 commit comments