You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
export default function validateForm (validations) {
/* istanbul ignore next */
return function () {
return process(validations, arguments)
}
}
function process (validations, args, keys) {
const errors = {}
for (let attr in validations) {
if (HAS_PROP.call(validations, attr) && validations[attr]) {
let attrKeys = keys ? keys.concat(attr) : [attr]
errors[attr] = isObject(validations[attr])
? process(validations[attr], args, attrKeys)
: firstErr([].concat(validations[attr])).apply(null, /* Has Error */[].concat(getIn(args[0], attrKeys), args))
}
}
return errors
}
after
export default function validateForm (validations) {
/* istanbul ignore next */
return function () {
return process(validations, [].slice.call(arguments))
}
}
The text was updated successfully, but these errors were encountered:
Keyword arguments can't use array.concat
before
after
The text was updated successfully, but these errors were encountered: