Created
October 31, 2018 12:26
-
-
Save ChukwuEmekaAjah/ea1e4b000dbed7e58796ef864d2aa2be to your computer and use it in GitHub Desktop.
Regular expression tester.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function isregexp(val) { | |
return Object.prototype.toString.call(val) === '[object RegExp]' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment