Convert a Formalist AST into a plain old JavaScript object of its values. It will discard any presentational data associated with the form definition.
import createDataObjectRenderer from 'formalist-data-object-renderer'
const dataObjectRenderer = createDataObjectRenderer()
const data = [...] // Formalist compatible AST
const dataObject = dataObjectRenderer(data)
// -> { ... data as object }
$ npm run test