index.js
function match(input, patterns = []){
	if(!patterns || 0 === patterns.length)
		return false;
	
	input    = String(input);
	patterns = arrayify(patterns).filter(Boolean);
	for(const pattern of patterns)
		if((pattern === input && "string" === typeof pattern)
		|| (pattern instanceof RegExp) && pattern.test(input))
			return true;
	return false;
}
function match(input, patterns = []){
	if(!patterns || 0 === patterns.length)
		return false;
	
	input    = String(input);
	patterns = arrayify(patterns).filter(Boolean);
	for(const pattern of patterns)
		if((pattern === input && "string" === typeof pattern)
		|| (pattern instanceof RegExp) && pattern.test(input))
			return true;
	return false;
}
function match ( input , patterns = [ ] ) { if ( ! patterns || 0 === patterns . length ) return false ; input = String ( input ) ; patterns = arrayify ( patterns ) . filter ( Boolean ) ; for ( const pattern of patterns ) if ( ( pattern === input && "string" === typeof pattern ) || ( pattern instanceof RegExp ) && pattern . test ( input ) ) return true ; return false ; }
Test a string against a list of patterns.

@param {String} input
@param {String[]|RegExp[]} patterns
@return {Boolean}
@internal
Test a string against a list of patterns .