UNPKG

313 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.default = (value, enums = []) => {
4 if (value === undefined) {
5 return false;
6 }
7 if (!Array.isArray(enums)) {
8 return false;
9 }
10 return enums.indexOf(value) > -1;
11};
12//# sourceMappingURL=enum.js.map
\No newline at end of file