Skip to content

Instantly share code, notes, and snippets.

View al-fyodorov's full-sized avatar
👾

Alexey Fyodorov al-fyodorov

👾
View GitHub Profile
export const isHasOwnProperty = <Key extends string>(
value: unknown,
key: Key
): value is Record<Key, unknown> => {
return (
value !== undefined &&
value !== null &&
Object.prototype.hasOwnProperty.call(value, key)
)
}

Keybase proof

I hereby claim:

  • I am al-fyodorov on github.
  • I am primarx (https://keybase.io/primarx) on keybase.
  • I have a public key ASBhH9lgXaKlgXUc_NkrXfP9PXS1apZu4ymN6_XnZnlYYQo

To claim this, I am signing this object: