@unction/matchesregexp

Compares a regular expression and a string


Keywords
unction, functional
License
ICU
Install
npm install @unction/matchesregexp@1.0.0

Documentation

@unction/matchesRegExp

Tests Stability Dependencies

RegExp => string => Boolean

Compares a regular expression and a string.

matchesRegExp(/abcd/)("abcde") // true