Skip to content

Commit

Permalink
Update validators.js
Browse files Browse the repository at this point in the history
Co-authored-by: John Gee <john@ruru.gen.nz>
  • Loading branch information
aaronccasanova and shadowspawn authored Feb 28, 2022
1 parent b0b71c4 commit 92811f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validators.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function validateString(value, name) {
}

function validateUnion(value, name, union) {
if (!union.includes(value)) {
if (!ArrayPrototypeIncludes(union, value)) {
throw new ERR_INVALID_ARG_TYPE(name, `('${union.join('|')}')`, value);
}
}
Expand Down

0 comments on commit 92811f4

Please sign in to comment.