@jalik/form-parser
Advanced tools
Changelog
v1.2.0 (2018-10-10)
buildObject()
:
buildObject('customField', value, context)
buildObject('customField[attr]', value, context)
buildObject('customFields[0]', value, context)
buildObject()
to remove undefined
fields:
undefined
is removed from the result
buildObject('items[0]', undefined, {items:[1,2]})
returns {items:[2]}
)undefined
is removed from the result
buildObject('obj[a]', undefined, {obj:{a:1,b:2}})
returns {obj:{b:2}}
)Changelog
v1.1.0 (2018-04-11)
nullify(value)
parseField(field, options)
trim(value)