isRegExp.d.ts 233 B

12345678910111213
  1. /**
  2. * 判断是否 RegExp 对象
  3. * @param val 值
  4. */
  5. export declare function isRegExp(val: any): val is RegExp;
  6. declare module './ctor' {
  7. interface XEUtilsMethods {
  8. isRegExp: typeof isRegExp;
  9. }
  10. }
  11. export default isRegExp