UNPKG

yh-validator

Version:

A lightweight form validation library with modular functions

1 lines 143 B
function t(e,r="Input"){return typeof e!="string"?{valid:false,errors:[`${r} must be a string, but received ${typeof e}`]}:null}export{t as a};