Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deepmergets/src/utils.ts>objectHasProperty

Deeply merge 2 or more objects respecting type information.
Go to Latest
function objectHasProperty
import { objectHasProperty } from "https://deno.land/x/deepmergets@v5.1.0/src/utils.ts";

Does the given object have the given property.

Parameters

object: object
  • The object to test.
property: PropertyKey
  • The property to test.

Returns

boolean

Whether the object has the property.