Skip to content

@miyue-mma/shared / isRegExp

函数: isRegExp()

ts
function isRegExp(val): val is RegExp

判断是否为 RegExp

参数

val

unknown

待判断的值

返回

val is RegExp

Released under the MIT License.