Skip to main content
Module

x/rambda/index.d.ts>has

Faster and smaller alternative to Ramda
Go to Latest
function has
import { has } from "https://deno.land/x/rambda@v7.0.1/index.d.ts";

It returns true if obj has property prop.

Parameters

prop: string
obj: T

Returns

boolean

Parameters

prop: string

Returns

<T>(obj: T) => boolean