Module: matches

(require("matches"))(value, testopt) → {Boolean}

Test whether a value passes a given test. The test could be a string, regexp, function, or array of any of these. This is at the core of most walkers.

Parameters:
Name Type Attributes Description
value
test string | RegExp | function | Array <optional>
Source:
Returns:

true if no test is provided, or test passes, false otherwise.

Type
Boolean