brainfoolong / form-data-json

A zero dependency, cross browser library to easily get or set/manipulate form input values as/from a json object.
https://brainfoolong.github.io/form-data-json
MIT License
57 stars 10 forks source link

Manipulating defaults for FormDataJsonOptions #5

Closed brainfoolong closed 4 years ago

brainfoolong commented 4 years ago

Make defaults possible to edit by code.

Adding a static property defaults with key/value pair instead of pre-filled property values should do the trick. So the user can edit the defaults property to their needs.