2018-11-22 16:41:46 +01:00
|
|
|
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
var distinctUntilChanged_1 = require("./distinctUntilChanged");
|
|
|
|
function distinctUntilKeyChanged(key, compare) {
|
|
|
|
return distinctUntilChanged_1.distinctUntilChanged(function (x, y) { return compare ? compare(x[key], y[key]) : x[key] === y[key]; });
|
|
|
|
}
|
|
|
|
exports.distinctUntilKeyChanged = distinctUntilKeyChanged;
|
2019-06-04 14:29:48 +02:00
|
|
|
//# sourceMappingURL=distinctUntilKeyChanged.js.map
|