function select(config = {}) {
const {
value,
title,
description,
disabled,
multiple,
size,
options
} = Array.isArray(config) ? {options: config} : config;
return Inputs.select(options, {
value,
label: title === undefined ? description : title,
format: o => typeof o === "object" ? o.label : o,
keyof: o => typeof o === "object" ? o.label : o,
valueof: o => typeof o === "object" ? o.value : o,
disabled: disabled || options.filter(o => typeof o === "object" && o.disabled).map(o => o.value),
multiple: multiple && size ? size : multiple
});
}