UNPKG

dom-validator

Version:

Validator similar to vee-validator for vuetify Applications

16 lines (13 loc) 383 B
export default (value, options) => { if(Array.isArray(options)){ for(let index1 in value){ for (let index2 in options){ if(value[index1] === options[index2]){ return true; } } } return false; } return !! value.filter(v => v == options).length; } // eslint-disable-line