# Code coverage report for RxJS/dist/cjs/operators/extended/distinctUntilKeyChanged.js

## Statements: 91.67% (11 / 12) Branches: 66.67% (4 / 6) Functions: 100% (3 / 3) Lines: 90.91% (10 / 11) Ignored: none

All files » RxJS/dist/cjs/operators/extended/ » distinctUntilKeyChanged.js

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21

    1
    1

    1

    1

    1

    1
    1
    5

    5

    1'use strict';

    exports.__esModule = true;
    exports['default'] = distinctUntilKeyChanged;

    function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

    var _distinctUntilChanged = require('../distinctUntilChanged');

    var _distinctUntilChanged2 = _interopRequireDefault(_distinctUntilChanged);

    function distinctUntilKeyChanged(key, compare, thisArg) {
        return _distinctUntilChanged2['default'].call(this, function (x, y) {
            Iif (compare) {
                return compare.call(thisArg, x[key], y[key]);
            }
            return x[key] === y[key];
        });
    }

    module.exports = exports['default'];