Skip to content

Commit

Permalink
Use Array.prototype.indexOf() instead of Array.prototype.includes()
Browse files Browse the repository at this point in the history
  • Loading branch information
eternalharvest committed May 1, 2018
1 parent 96f5059 commit d38e1d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/units/era.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export function localeErasParse(eraName, format, strict) {
}
break;
}
} else if ([name, abbr, narrow].includes(eraName)) {
} else if ([name, abbr, narrow].indexOf(eraName) >= 0) {
return eras[i];
}
}
Expand Down

0 comments on commit d38e1d8

Please sign in to comment.