Fix typo and add lazy tests.

This commit is contained in:
John-David Dalton
2014-10-09 09:50:08 -07:00
parent ec3e3ed1fd
commit b3e2305dea
2 changed files with 44 additions and 49 deletions

View File

@@ -4821,7 +4821,7 @@
if (doneDropping) {
result[resIndex++] = value;
} else {
doneDropping = ++droppedCount < dropCount;
doneDropping = ++droppedCount >= dropCount;
}
}
return isRight ? result.reverse() : result;
@@ -9957,7 +9957,9 @@
};
LazyWrapper.prototype[methodName + 'RightWhile'] = function(predicate, thisArg) {
return this.reverse()[whileName](predicate, thisArg).reverse();
var result = this.reverse()[whileName](predicate, thisArg);
result.filtered = true;
return result.reverse();
};
});