14 lines
246 B
TypeScript
14 lines
246 B
TypeScript
/**
|
|
* 判断是否 RegExp 对象
|
|
* @param val 值
|
|
*/
|
|
export declare function isRegExp(val: any): val is RegExp;
|
|
|
|
declare module './ctor' {
|
|
interface XEUtilsMethods {
|
|
isRegExp: typeof isRegExp;
|
|
}
|
|
}
|
|
|
|
export default isRegExp
|