obj desc method method method let _this = null ; export const verification = _this = { _phoneRE : /^(13[0-9]|15[012356789]|18[0-9]|17[678]|14[57])[0-9]{8}$/ , _emailRE : /^([a-zA-Z0-9]+[_|_|.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|_|.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/ , checkRe : function ( re ) : ( checkedStr : string ) => boolean { return ( checkedStr ) : boolean => { return re . test ( checkedStr ) ; } ; } , checkLength : function ( min = 0 , max ) : ( str : string ) => boolean { return ( str ) : boolean => str . length >= min && str . length <= max ; } , check : function ( checkType ) : ( checkedStr : string ) => boolean { return _this . checkRe ( _this [ `_${ checkType }RE` ] ) ; } } ; export default verification ; export const checkRe = verification . checkRe ; export const checkLength = verification . checkLength ; export const check = verification . check ;