mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
5 lines
270 B
JavaScript
5 lines
270 B
JavaScript
|
import { distinctUntilChanged } from './distinctUntilChanged';
|
||
|
export function distinctUntilKeyChanged(key, compare) {
|
||
|
return distinctUntilChanged((x, y) => compare ? compare(x[key], y[key]) : x[key] === y[key]);
|
||
|
}
|
||
|
//# sourceMappingURL=distinctUntilKeyChanged.js.map
|