class Validate { isValidParameterKey = ( value ) : boolean => { const pattern = /^[a-z]([a-z0-9_-]+)*$/i ; return pattern . test ( value ) ; } ; } const validate = new Validate ( ) ; export default validate ;