Backed out changeset 489046125fa6 (bug 897683) due to Ubuntu debug Jetpack perma-orange.

This commit is contained in:
Ryan VanderMeulen
2013-07-25 08:51:50 -04:00
parent 9ff0ca523f
commit 83a175c349
48 changed files with 690 additions and 1447 deletions

View File

@@ -101,7 +101,7 @@ function fromIterator(iterator) {
}
exports.fromIterator = fromIterator;
function find(array, predicate, fallback) {
function find(array, predicate) {
var index = 0;
var count = array.length;
while (index < count) {
@@ -109,6 +109,5 @@ function find(array, predicate, fallback) {
if (predicate(value)) return value;
else index = index + 1;
}
return fallback;
}
exports.find = find;