handleLanguageChange(event) {
    let [value, name, id] = this.getEventValues(event);
    if (event.target.checked) {
        this.setState({
            languages: this.state.languages.concat({'name':id})
        });
    }
    else {
        var newArr = this.state.languages.filter( l => {
            return l.name !== id;
        })
        this.setState({languages:  newArr});
    }
}
/**
 * Event handler that is called to update the component's state when
 * the user changes the values of the form fields associated with a 
 * driver's languages.
 * @param {Object} event The event that is triggered on a change of value
 *                          to the language fields in the form.
 */
Event handler that is called to update the component's state when
the user changes the values of the form fields associated with a
driver's languages.
@param {Object} event The event that is triggered on a change of value
to the language fields in the form.
Event handler that is called to update the component ' s state when the user changes the values of the form fields associated with a driver ' s languages . @param { Object } event The event that is triggered on a change of value to the language fields in the form .
handleLanguageChange(event) {
    let [value, name, id] = this.getEventValues(event);
    if (event.target.checked) {
        this.setState({
            languages: this.state.languages.concat({'name':id})
        });
    }
    else {
        var newArr = this.state.languages.filter( l => {
            return l.name !== id;
        })
        this.setState({languages:  newArr});
    }
}
handleLanguageChange ( event ) { let [ value , name , id ] = this . getEventValues ( event ) ; if ( event . target . checked ) { this . setState ( { languages : this . state . languages . concat ( { 'name' : id } ) } ) ; } else { var newArr = this . state . languages . filter ( l => { return l . name !== id ; } ) this . setState ( { languages : newArr } ) ; } }
Event handler that is called to update the component's state when
 the user changes the values of the form fields associated with a
 driver's languages.
Event handler that is called to update the component ' s state when the user changes the values of the form fields associated with a driver ' s languages .