Skip to main content
Module

x/mixwithts/mod.ts>DeDupe

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

Decorates mixin so that it only applies if it's not already on the prototype chain.

Parameters

mixin: mixin<C, T>
  • The mixin function to be deduplicated.

Returns

  • A deduplicated mixin that extends the original superclass if needed.