UNPKG

487 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const base_predicate_1 = require("./predicates/base-predicate");
4/**
5Validate 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*/
13function test(value, label, predicate) {
14 predicate[base_predicate_1.testSymbol](value, test, label);
15}
16exports.default = test;