validator.Contains
//Example use of the validator package's contain method
validate(value){
if(validator.isEmpty(value)){
throw new Error('Please enter your password!')
}else if(validator.equals(value.toLowerCase(),"password")){
throw new Error('Password is invalid!')
}else if(validator.contains(value.toLowerCase(), "password")){
throw new Error('Password should not contain password!')
}
}
Derogatory Desert Turtoise