@expandorg/validation
Advanced tools
Comparing version 0.2.11 to 0.2.12
{ | ||
"name": "@expandorg/validation", | ||
"version": "0.2.11", | ||
"version": "0.2.12", | ||
"description": "Expand UI validation library", | ||
@@ -19,3 +19,3 @@ "main": "index.js", | ||
}, | ||
"gitHead": "5045b9c74b82248a6f001e3b637b16206044940b" | ||
"gitHead": "d1073069e7750ab6967e64d01f2837ad368b953d" | ||
} |
// @flow | ||
const validateField = (fieldValue: any, fieldRules: Array<any> | Object) => { | ||
const failed = fieldRules.find(rule => { | ||
const failed = fieldRules.find((rule) => { | ||
// eslint-disable-next-line no-unused-vars | ||
@@ -6,0 +6,0 @@ const [fn, message, ...args] = rule; |
19977