UNPKG

233 BJavaScriptView Raw
1export default (value, enums = []) => {
2 if (value === undefined) {
3 return false;
4 }
5 if (!Array.isArray(enums)) {
6 return false;
7 }
8 return enums.indexOf(value) > -1;
9};
10//# sourceMappingURL=enum.js.map
\No newline at end of file