test
test(target, source)
Tests if target
string matches the source
regular expression.
ts
test("hello world", /world/); // true
test("hello world", /\d+/); // false
ts
pipe("hello world", test(/world/)); // true
pipe("hello world", test(/\d+/)); // false