"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.distinctUntilKeyChanged = void 0;
const distinctUntilChanged_js_1 = require("./distinctUntilChanged.js");
function distinctUntilKeyChanged(key, compare) {
    return (0, distinctUntilChanged_js_1.distinctUntilChanged)((x, y) => (compare ? compare(x[key], y[key]) : x[key] === y[key]));
}
exports.distinctUntilKeyChanged = distinctUntilKeyChanged;