@ozen-ui/kit
Version:
React component library
12 lines (11 loc) • 352 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.getOptionIndex = void 0;
var getOptionIndex = function (options, id) {
var index = options.findIndex(function (option) { return option.id === id; });
if (index === -1) {
return null;
}
return index;
};
exports.getOptionIndex = getOptionIndex;
;