Skip to main content
Module

x/fae/propIs.ts>propIs

A functional module for Deno inspired from Ramda.
Latest
variable propIs
import { propIs } from "https://deno.land/x/fae@v1.1.1/propIs.ts";

Returns true if the specified object property is of the given type; false otherwise.

 Fae.propIs('Number', 'a', {a: 1, y: 2});  //=> true
 Fae.propIs('String', 'a', {a: 'foo'});    //=> true
 Fae.propIs('Number', 'a', {});            //=> false

type

PropIs