Map form field values onto object properties, via matching form field and schema property names
npm install --save @clocklimited/cf-map-form-to-object
npm install --save @clocklimited/schemata
const mapFormToObject = require('cf-map-form-to-object')
const schema = require('./article-schema')()
var formData = mapFormToObject($('form'), schema)
// formData will be an object with any values for schema properties
// that could be extracted from the form by [name] attributes.
Built by developers at Clock.
Licensed under the New BSD License