"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.remove = exports.add = void 0;
function add(arr, id) {
    const hadInclude = arr.includes(id);
    if (!hadInclude)
        arr.push(id);
}
exports.add = add;
function remove(arr, id) {
    const index = arr.findIndex((v) => v === id);
    if (index > -1)
        arr.splice(index, 1);
}
exports.remove = remove;
