imports/vx/client/code/ux.js
/**
     * Given a value and a code array, if the value is null, select the
     * first value from the code array.  This allows us to set the state
     * of VXSelect controls to behave as they do when no value is selected.
     *
     * @param {string} value Value to test.
     * @param {array} codeArray Standard code array.
     * @return {string} Supplied value or first value in code array.
     */
Given a value and a code array, if the value is null, select the
first value from the code array.  This allows us to set the state
of VXSelect controls to behave as they do when no value is selected.

@param {string} value Value to test.
@param {array} codeArray Standard code array.
@return {string} Supplied value or first value in code array.
Given a value and a code array if the value is null select the first value from the code array . This allows us to set the state of VXSelect controls to behave as they do when no value is selected . @param { string } value Value to test . @param { array } codeArray Standard code array . @return { string } Supplied value or first value in code array .
chooseFirstIfBlank(value, codeArray) {
        if (value) {
            return value
        }
        return codeArray[0].code
    }
chooseFirstIfBlank ( value , codeArray ) { if ( value ) { return value } return codeArray [ 0 ] . code }
Given a value and a code array, if the value is null, select the
 first value from the code array.
Given a value and a code array if the value is null select the first value from the code array .