UNPKG

chamesu

Version:

This package contains all packages of the chat application.

12 lines (10 loc) 422 B
/* * Copyright (c) 2021. * Author Peter Placzek (tada5hi) * For the full copyright and license information, * view the LICENSE file that was distributed with this source code. */ // eslint-disable-next-line @typescript-eslint/ban-types export function hasOwnProperty<X extends {}, Y extends PropertyKey>(obj: X, prop: Y): obj is X & Record<Y, unknown> { return Object.prototype.hasOwnProperty.call(obj, prop); }