Skip to content

Commit afb84e5

Browse files
Merge pull request scijs#3 from kamalasaurus/fix-array-check
changed 'instanceof Array' to 'Array.isArray' because instanceof can …
2 parents b796655 + 3cf5b60 commit afb84e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

convert.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var do_convert = require("./doConvert.js")
55

66
module.exports = function convert(arr, result) {
77
var shape = [], c = arr, sz = 1
8-
while(c instanceof Array) {
8+
while(Array.isArray(c)) {
99
shape.push(c.length)
1010
sz *= c.length
1111
c = c[0]

0 commit comments

Comments
 (0)