/* eslint-disable @typescript-eslint/space-before-function-paren */ /** * @description predicate type to confirm that object has key */ export default function hasOwnKey (object: Record, key: Key): object is { [K in Key | Keys]: Record[K] } { return Reflect.ownKeys(object).includes(key); }