Skip to main content
Module

x/natico/discordeno_deps.ts>hasProperty

A powerful and customizable framework for Discordeno
Latest
function hasProperty
Re-export
import { hasProperty } from "https://deno.land/x/natico@4.0.0-pre.4/discordeno_deps.ts";

TS save way to check if a property exists in an object

Type Parameters

T extends { }
optional
Y extends PropertyKey = string

Parameters

obj: T
prop: Y

Returns

obj is T & Record<Y, unknown>