function serialize(formElements) {
    let result = {};

    for (let i = 0; i < formElements.length; i++) {
        let control = formElements[i];
        if (control.name) {
            result[control.name] = control.valueAsNumber;
        }
    }

    return result;
}
/**
 * Returns the form values as an object
 */
Returns the form values as an object
Returns the form values as an object
function serialize(formElements) {
    let result = {};
    for (let i = 0; i < formElements.length; i++) {
        let control = formElements[i];
        if (control.name) {
            result[control.name] = control.valueAsNumber;
        }
    }
    return result;
}
function serialize ( formElements ) { let result = { } ; for ( let i = 0 ; i < formElements . length ; i ++ ) { let control = formElements [ i ] ; if ( control . name ) { result [ control . name ] = control . valueAsNumber ; } } return result ; }
Returns the form values as an object
Returns the form values as an object