Skip to main content
Module

x/rambda/immutable.d.ts>is

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

It returns true if x is instance of targetPrototype.

Type Parameters

C extends () => any

Parameters

targetPrototype: C
val: any

Returns

val is ReturnType<C>

Type Parameters

C extends new () => any

Parameters

targetPrototype: C
val: any

Returns

val is InstanceType<C>

Type Parameters

C extends () => any

Parameters

targetPrototype: C

Returns

(val: any) => val is ReturnType<C>

Type Parameters

C extends new () => any

Parameters

targetPrototype: C

Returns

(val: any) => val is InstanceType<C>