Skip to content

Commit

Permalink
The length of x will not be greater than na
Browse files Browse the repository at this point in the history
  • Loading branch information
jetzhliu authored and mbostock committed Jun 16, 2017
1 parent 6024853 commit b846c31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/array.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import value from "./value";
export default function(a, b) {
var nb = b ? b.length : 0,
na = a ? Math.min(nb, a.length) : 0,
x = new Array(nb),
x = new Array(na),
c = new Array(nb),
i;

Expand Down

0 comments on commit b846c31

Please sign in to comment.