Skip to content

Commit

Permalink
refactor: use Array.includes
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgeorge007 authored and Conduitry committed Dec 18, 2019
1 parent a9065d4 commit 6a5e1d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/compile/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function validate_options(options: CompileOptions, warnings: Warning[]) {
const { name, filename, loopGuardTimeout, dev } = options;

Object.keys(options).forEach(key => {
if (valid_options.indexOf(key) === -1) {
if (!valid_options.includes(key)) {
const match = fuzzymatch(key, valid_options);
let message = `Unrecognized option '${key}'`;
if (match) message += ` (did you mean '${match}'?)`;
Expand Down

0 comments on commit 6a5e1d5

Please sign in to comment.