Skip to content
Snippets Groups Projects
Commit a5438b0a authored by Brian Terlson's avatar Brian Terlson
Browse files

Merge pull request #135 from juandopazo/find-holes

Array.prototype.find no longer skips holes
parents b81b71ea d863423d
No related branches found
No related tags found
No related merge requests found
...@@ -16,6 +16,6 @@ var b = a.find(function (v) { ...@@ -16,6 +16,6 @@ var b = a.find(function (v) {
return v !== 1; return v !== 1;
}); });
if (b !== 2) { if (b !== undefined) {
$ERROR('#1: b !== 2. Actual: ' + b); $ERROR('#1: b !== undefined. Actual: ' + b);
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment