"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.checkIsSelected = void 0;
const getIdFromValue_1 = require("../getIdFromValue");
const checkIsSelected = (value, optionId) => {
    if (!value || !value.length) {
        return false;
    }
    return value.some((item) => (0, getIdFromValue_1.getIdFromValue)(item) === optionId);
};
exports.checkIsSelected = checkIsSelected;
