scripts/dom/index.js
function _getSelected(select) {
    const arr = [];

    _slice.call(select.options).map((el) => {
        if (el.selected) {
            arr.push(el.value);
        }
    });

    return arr;
}
function _getSelected(select) {
    const arr = [];

    _slice.call(select.options).map((el) => {
        if (el.selected) {
            arr.push(el.value);
        }
    });

    return arr;
}
function _getSelected ( select ) { const arr = [ ] ; _slice . call ( select . options ) . map ( ( el ) => { if ( el . selected ) { arr . push ( el . value ) ; } } ) ; return arr ; }
Get the selected options from a select

@private
@param {HTMLElement} select
@returns {Array} selected
Get the selected options from a select