1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.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 |