Skip to content

Commit

Permalink
[Fix] again: don’t needlessly shim Array#find
Browse files Browse the repository at this point in the history
Fixes #22, builds on 026db56
  • Loading branch information
ljharb committed Jan 24, 2017
1 parent 0412e2d commit 5ba958c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion polyfill.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = function getPolyfill() {
// eslint-disable-next-line no-sparse-arrays
var implemented = Array.prototype.find && [, 1].find(function () {
return true;
}) === 1;
}) !== 1;

// eslint-disable-next-line global-require
return implemented ? Array.prototype.find : require('./implementation');
Expand Down

0 comments on commit 5ba958c

Please sign in to comment.