enum.js 313 B

123456789101112
  1. "use strict";
  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