"use strict";
const toString = Object.prototype.toString;
function is(val, type) {
  return toString.call(val) === `[object ${type}]`;
}
function isString(val) {
  return is(val, "String");
}
function isPhone(phone) {
  const reg = /^(?:(?:\+|00)86)?1(?:(?:3[\d])|(?:4[5-79])|(?:5[0-35-9])|(?:6[5-7])|(?:7[0-8])|(?:8[\d])|(?:9[189]))\d{8}$/;
  return reg.test(phone);
}
exports.isPhone = isPhone;
exports.isString = isString;
//# sourceMappingURL=../../.sourcemap/mp-weixin/utils/is.js.map
