respond-framework
Version:
create as fast you think
8 lines (7 loc) • 319 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
const findSelectedOption = (options, value) => options.find(o => o.value === value) || options.find(o => o.defaultOption) || options.length === 1 && options[0];
var _default = exports.default = findSelectedOption;