- public static objectHasOwnProperty(object: object, property: string): boolean {
- return (
- Utils.isObject(object) && (Object.prototype.hasOwnProperty.call(object, property) as boolean)
- );
+ public static hasOwnProp(object: unknown, property: PropertyKey): boolean {
+ return Utils.isObject(object) && Object.hasOwn(object as object, property);