Skip to content

Commit

Permalink
includes->indexOf (#307)
Browse files Browse the repository at this point in the history
  • Loading branch information
koresar authored and FredyC committed Apr 30, 2017
1 parent a41e165 commit d7f60ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stampit.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ function stampit(...args) {
const uniqueComposers = [];
for (let i = 0; i < composerFunctions.length; i += 1) {
const composer = composerFunctions[i];
if (isFunction(composer) && !uniqueComposers.includes(composer)) {
if (isFunction(composer) && uniqueComposers.indexOf(composer) < 0) {
uniqueComposers.push(composer);
}
}
Expand Down

0 comments on commit d7f60ac

Please sign in to comment.