Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/denofun/has.ts>default

Small utility library containing functions, monads and other fun stuff.
Latest
function default
import { default } from "https://deno.land/x/denofun@v0.2.0/has.ts";

has checks if a key exists inside an object (does NOT check the prototype's keys!)

Parameters

x: string

name of the key to look up

y: Object

an object to check