Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deepmergets/dist/deno/index.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/dist/deno/index.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.