Skip to main content
Module

x/deepmergets/dist/node/types/current/index.d.cts>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/dist/node/types/current/index.d.cts";

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.