mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-15 10:05:45 +01:00
Fix some typos.
This commit is contained in:
@@ -1130,7 +1130,7 @@ const array = Class("array", Array, {
|
||||
* Returns the nth member of the given array that matches the
|
||||
* given predicate.
|
||||
*/
|
||||
nth: function first(ary, pred, n, self) {
|
||||
nth: function nth(ary, pred, n, self) {
|
||||
for (let elem in values(ary))
|
||||
if (pred.call(self, elem) && n-- === 0)
|
||||
return elem;
|
||||
|
||||
Reference in New Issue
Block a user