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

x/deepmergets/tests/utils.ts>hasProp

Deeply merge 2 or more objects respecting type information.
Go to Latest
function hasProp
import { hasProp } from "https://deno.land/x/deepmergets@v7.0.1/tests/utils.ts";

Type Parameters

T
K extends PropertyKey

Parameters

value: T
prop: K

Returns

value is T & Record<K, unknown>