mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-31 21:53:31 +02:00
Use builtin Array.find rather than array.nth where applicable.
This commit is contained in:
@@ -157,7 +157,7 @@ var Download = Class("Download", {
|
||||
let val = this._compare[order.substr(1)](this, other);
|
||||
|
||||
return (order[0] == "-") ? -val : val;
|
||||
}, this).nth(util.identity, 0) || 0,
|
||||
}, this).find(util.identity) || 0,
|
||||
|
||||
timeRemaining: Infinity,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user