UNPKG

@hmcts/rpx-xui-node-lib

Version:

Common nodejs library components for XUI

11 lines 388 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.hasKey = void 0; // `keyof any` is short for "string | number | symbol" // since an object key can be any of those types, our key can too // in TS 3.0+, putting just "string" raises an error function hasKey(obj, key) { return key in obj; } exports.hasKey = hasKey; //# sourceMappingURL=hasKey.js.map