Skip to main content
Module

x/mixwithts/mod.ts>isApplicationOf

TypeScript compatible version of Justin Fagani's mixin library for ES6
Latest
variable isApplicationOf
import { isApplicationOf } from "https://deno.land/x/mixwithts@1.1.2/mod.ts";

Returns true iff proto is a prototype created by the application of mixin to a superclass.

isApplicationOf works by checking that proto has a reference to mixin as created by apply.

type

<T>(proto: object, mixin: T) => unknown