"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.difference = difference;
exports.mapObject = mapObject;
/**获取两个setA-setB */
function difference(a, b) {
    const result = new Set();
    for (const item of a) {
        if (!b.has(item))
            result.add(item);
    }
    return result;
}
/**对对象执行map方法 */
function mapObject(obj, fn) {
    return Object.fromEntries(Object.entries(obj).map(([k, v]) => [
        k,
        fn(v, k),
    ]));
}
