2022-01-21 08:28:41 +00:00
|
|
|
import { distinctUntilChanged } from './distinctUntilChanged';
|
|
|
|
export function distinctUntilKeyChanged(key, compare) {
|
|
|
|
return distinctUntilChanged(function (x, y) { return compare ? compare(x[key], y[key]) : x[key] === y[key]; });
|
|
|
|
}
|
2022-06-08 10:36:39 +00:00
|
|
|
//# sourceMappingURL=distinctUntilKeyChanged.js.map
|