distinctUntilKeyChanged.js 354 B

123456
  1. /** PURE_IMPORTS_START _distinctUntilChanged PURE_IMPORTS_END */
  2. import { distinctUntilChanged } from './distinctUntilChanged';
  3. export function distinctUntilKeyChanged(key, compare) {
  4. return distinctUntilChanged(function (x, y) { return compare ? compare(x[key], y[key]) : x[key] === y[key]; });
  5. }
  6. //# sourceMappingURL=distinctUntilKeyChanged.js.map