Skip to content

Commit

Permalink
Prefer ES2017
Browse files Browse the repository at this point in the history
See v1.8.5 for backwards compatibility
  • Loading branch information
mroderick committed Nov 7, 2022
1 parent bb22646 commit f890f87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/prototypes/copy-prototype-methods.js
Expand Up @@ -24,7 +24,7 @@ module.exports = function copyPrototypeMethods(prototype) {
result,
name
) {
if (disallowedProperties.indexOf(name) > -1) {
if (disallowedProperties.includes(name)) {
return result;
}

Expand Down

0 comments on commit f890f87

Please sign in to comment.