UNPKG

586 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@param idLabel - If true, the label is a variable or type. Default: true.
13*/
14function test(value, label, predicate, idLabel = true) {
15 predicate[base_predicate_1.testSymbol](value, test, label, idLabel);
16}
17exports.default = test;