Skip to main content
Module

x/deepmergets/dist/deno/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@v4.0.2/dist/deno/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.