summaryrefslogtreecommitdiff
path: root/common/modules/base.jsm
diff options
context:
space:
mode:
Diffstat (limited to 'common/modules/base.jsm')
-rw-r--r--common/modules/base.jsm4
1 files changed, 0 insertions, 4 deletions
diff --git a/common/modules/base.jsm b/common/modules/base.jsm
index 46ec85c9..b0abfece 100644
--- a/common/modules/base.jsm
+++ b/common/modules/base.jsm
@@ -1500,8 +1500,6 @@ update(iter, {
nth: function nth(iter, pred, n, self) {
if (typeof pred === "number")
[pred, n] = [function () true, pred]; // Hack.
- if (n === undefined)
- n = 0;
for (let elem in iter)
if (pred.call(self, elem) && n-- === 0)
@@ -1643,8 +1641,6 @@ var array = Class("array", Array, {
* given predicate.
*/
nth: function nth(ary, pred, n, self) {
- if (n === undefined)
- n = 0;
for (let elem in values(ary))
if (pred.call(self, elem) && n-- === 0)
return elem;