@hmcts/rpx-xui-node-lib
Version:
Common nodejs library components for XUI
10 lines • 363 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.hasKey = hasKey;
// `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;
}
//# sourceMappingURL=hasKey.js.map