const notifiedErrors = {};
export const maxNTimes = (_err, times = 3) => {
    // const _err =  || "";
    if (!_err)
        return "";
    const err = _err && notifiedErrors[_err] < times ? _err : "";
    notifiedErrors[_err] = (notifiedErrors[_err] || 0) + 1;
    return err || "";
};
//# sourceMappingURL=maxNTimes.js.map