Closed ghost closed 12 years ago
walk should use the delete operator when removing elements from arrays, instead of Array#splice.
walk
delete
Array#splice
Expected:
JSON.parse("[1, 2, 3]", function (key, value) { if (typeof value == "object" && value) { return value; } }).length == 3;
Actual:
JSON.parse("[1, 2, 3]", function (key, value) { if (typeof value == "object" && value) { return value; } }).length == 0;
walk
should use thedelete
operator when removing elements from arrays, instead ofArray#splice
.Expected:
Actual: