e.g. given your current data structure, you can do...
# suitescript
s
e.g. given your current data structure, you can do something like this
Copy code
const field = fields[0]
_.each(field.constraints, function (c) { c.fails.call(field) })