Version: v0.8.1 - Beta.  We welcome contributors & feedback.

Object.isRegex

isRegex() -> boolean

Description

Returns true if the variable is a Regex.

$pattern = rx'\w+'i

$pattern.isRegex()
//= true

See Also