1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const base_predicate_1 = require("./predicates/base-predicate");
|
4 | /**
|
5 | Validate the value against the provided predicate.
|
6 |
|
7 | @hidden
|
8 |
|
9 | @param value - Value to test.
|
10 | @param label - Label which should be used in error messages.
|
11 | @param predicate - Predicate to test to value against.
|
12 | */
|
13 | function test(value, label, predicate) {
|
14 | predicate[base_predicate_1.testSymbol](value, test, label);
|
15 | }
|
16 | exports.default = test;
|