@kcws/lintstaged-config
Version:
kamontat's lintstaged config
11 lines • 414 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isSameMap = void 0;
const isSameMap = (map1, map2, compareFn = (a, b) => a === b) => {
return (map1.size === map2.size &&
![...map1.entries()].some(([key, value]) => {
return !map2.has(key) || !compareFn(map2.get(key), value);
}));
};
exports.isSameMap = isSameMap;
//# sourceMappingURL=map.js.map