import { isSubclassOf } from "https://deno.land/x/ayonli_jsext@v0.9.72/esm/mixins.js";
Checks if a class is a subclass of another class.
Examples
Example 1
Example 1
import { isSubclassOf } from "@ayonli/jsext/class";
class Moment extends Date {}
console.assert(isSubclassOf(Moment, Date));
console.assert(isSubclassOf(Moment, Object)); // all classes are subclasses of Object