openapi-diff
Version:
A CLI tool to identify differences between Swagger/OpenAPI specs.
9 lines (8 loc) • 371 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getCommonKeysFromObjects = void 0;
const getCommonKeysFromObjects = (source, destination) => {
const sourceKeys = Object.keys(source);
return Object.keys(destination).filter((key) => sourceKeys.indexOf(key) >= 0);
};
exports.getCommonKeysFromObjects = getCommonKeysFromObjects;