Checks if the input is a regexp.
检查输入是否为正则表达式。
The value to check. 要检查的值
True if the value is a regexp, false otherwise. 如果值为正则表达式则返回 true,否则返回 false
isRegexp(/abc/) // => trueisRegexp('/abc/') // => false Copy
isRegexp(/abc/) // => trueisRegexp('/abc/') // => false
Checks if the input is a regexp.
检查输入是否为正则表达式。