UNPKG

openapi-diff

Version:

A CLI tool to identify differences between Swagger/OpenAPI specs.

9 lines (8 loc) 387 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getRemovedKeysFromObjects = void 0; const getRemovedKeysFromObjects = (source, destination) => { const destinationKeys = Object.keys(destination); return Object.keys(source).filter((key) => destinationKeys.indexOf(key) === -1); }; exports.getRemovedKeysFromObjects = getRemovedKeysFromObjects;