Skip to content

Commit d4cb0c4

Browse files
committed
no need to check for typed array in outer array of a 2d array
1 parent 306986d commit d4cb0c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/traces/carpet/map_2d_array.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var isArrayOrTypedArray = require('../../lib').isArrayOrTypedArray;
1818
module.exports = function mapArray(out, data, func) {
1919
var i, j;
2020

21-
if(!isArrayOrTypedArray(out)) {
21+
if(!Array.isArray(out)) {
2222
// If not an array, make it an array:
2323
out = [];
2424
} else if(out.length > data.length) {

0 commit comments

Comments
 (0)