Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d4cb0c4

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

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎src/traces/carpet/map_2d_array.js

Copy file name to clipboardExpand all lines: src/traces/carpet/map_2d_array.js
+1-1Lines changed: 1 addition & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.