/** * Produces a function that evaluates the first argument it receives against all conditions * given and returns true if any of them return truthy. Can be passed type constructors * to confirm if the passed value is of that type. Non-function values will be compared * with shallow equality. * * @param {...Function|any} conditions * * @returns {Function} * @category Functional */ export function is(...conditions: (Function | any)[]): Function; /** * Produces a function that evaluates the first argument it receives against all conditions * given and returns true if *all* of them return truthy. Can be passed type constructors * to confirm if the passed value is of that type. Non-function values will be compared * with shallow equality. * * @param {...Function|any} conditions * * @returns {Function} * @category Functional */ export function isAll(...conditions: (Function | any)[]): Function; /** * Produces a function which tests if its first argument matches the given Regular Expression * * @param {RegExp} pattern * * @returns {Function} * @category Functional */ export function re(pattern: RegExp): Function; export function isa(constructor: Function | Class): Function;