UNPKG

openapi-diff

Version:

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

7 lines (6 loc) 270 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getAddedKeysFromObjects = (source, destination) => { const sourceKeys = Object.keys(source); return Object.keys(destination).filter((key) => sourceKeys.indexOf(key) === -1); };