shared.js 268 B

123456789101112
  1. "use strict";
  2. exports.__esModule = true;
  3. exports.isDef = isDef;
  4. exports.isKorean = isKorean;
  5. function isDef(val) {
  6. return val !== undefined && val !== null;
  7. }
  8. function isKorean(text) {
  9. var reg = /([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi;
  10. return reg.test(text);
  11. }