Get/set data in form fields with consistent type coercion and validation
"fio" (form IO) is a set of utilities for getting/setting data in HTML input and select form fields more consistently type coercion and validation.
It follows these conventions:
data-typeattribute if one is present and falls back to the
Gets the input value given the selector.
Sets the input value for the selector.
Coerces some value for the given type. This is generally performed after
getInputValue is used.
Validates a value is of the given type. Returns a boolean denoting the result.
fio; // ['foo', 'baz']
fio; // [1, 2]
fio; // 1