Skip to main content
Module

x/deepmergets/dist/deno/mod.ts>objectHasProperty

Deeply merge 2 or more objects respecting type information.
Go to Latest
function objectHasProperty
import { objectHasProperty } from "https://deno.land/x/deepmergets@v7.0.1/dist/deno/mod.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.