var arr = [
'string|requiredIf:type,mobile|max:9|min:9|mobile',
'string|required|max:9|min:9|mobile',
'string|max:9|min:9|mobile|required',
'required|string|max:9|min:9|mobile',
'string|max:9|min:9|mobile'
];
var reg = /(?<=^||)required(?=$||)/
arr.filter(item => reg.test(item))
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…