"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.addItem = void 0;
/**
 * Добавляет элемент в value
 */
const addItem = (value, item, isObjectMode) => {
    const currentValue = value || [];
    const newItem = isObjectMode ? item : item.id;
    return [...currentValue, newItem];
};
exports.addItem = addItem;
