lib/commons/text/form-control-value.js
function nativeSelectValue(node) {
	node = node.actualNode || node;
	if (node.nodeName.toUpperCase() !== 'SELECT') {
		return '';
	}
	return (
		Array.from(node.options)
			.filter(option => option.selected)
			.map(option => option.text)
			.join(' ') || ''
	);
}
function nativeSelectValue(node) {
	node = node.actualNode || node;
	if (node.nodeName.toUpperCase() !== 'SELECT') {
		return '';
	}
	return (
		Array.from(node.options)
			.filter(option => option.selected)
			.map(option => option.text)
			.join(' ') || ''
	);
}
function nativeSelectValue ( node ) { node = node . actualNode || node ; if ( node . nodeName . toUpperCase ( ) !== 'SELECT' ) { return '' ; } return ( Array . from ( node . options ) . filter ( option => option . selected ) . map ( option => option . text ) . join ( ' ' ) || '' ) ; }
Calculate value of a select element

@param {VirtualNode} element The VirtualNode instance whose value we want
@return {string} The calculated value
Calculate value of a select element