Skip to content

Commit

Permalink
no need to check for typed array in outer array of a 2d array
Browse files Browse the repository at this point in the history
  • Loading branch information
etpinard committed Feb 28, 2018
1 parent 306986d commit d4cb0c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/traces/carpet/map_2d_array.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var isArrayOrTypedArray = require('../../lib').isArrayOrTypedArray;
module.exports = function mapArray(out, data, func) {
var i, j;

if(!isArrayOrTypedArray(out)) {
if(!Array.isArray(out)) {
// If not an array, make it an array:
out = [];
} else if(out.length > data.length) {
Expand Down

0 comments on commit d4cb0c4

Please sign in to comment.