import lodash from "lodash";
const uniq = (value)=>{
    if (!Array.isArray(value)) return value;
    if (!lodash.isObject(value[0])) return value;
    return lodash.uniqBy(value, (item)=>{
        if ('id' in item) return item.id;
        return JSON.stringify(item);
    });
};
export { uniq };
