UNPKG
@daiyam/regexp
Version:
latest (0.2.3)
0.2.3
0.2.2
0.2.1
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
RegExp parser/formatter/visitor/transformer
github.com/daiyam/node-regexp
daiyam/node-regexp
@daiyam/regexp
/
src
/
isRegExp.js
8 lines
(6 loc)
•
129 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
function
isRegExp
(
value
) {
return
Object
.
prototype
.
toString
.
call
(value) ===
'[object RegExp]'
}
module
.
exports
= { isRegExp }