Skip to content

Commit

Permalink
Naming Array#find and Array#findIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Sep 3, 2014
1 parent eb6ba2e commit 19c3033
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions es6-shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@
return O;
},

find: function(predicate) {
find: function find(predicate) {
var list = ES.ToObject(this);
var length = ES.ToLength(list.length);
if (!ES.IsCallable(predicate)) {
Expand All @@ -718,7 +718,7 @@
return undefined;
},

findIndex: function(predicate) {
findIndex: function findIndex(predicate) {
var list = ES.ToObject(this);
var length = ES.ToLength(list.length);
if (!ES.IsCallable(predicate)) {
Expand Down

0 comments on commit 19c3033

Please sign in to comment.