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-04-07 07:06:43 +00:00
|
|
|
//# sourceMappingURL=distinctUntilKeyChanged.js.map
|