Skip to content

unctionjs/supertype

Repository files navigation

@unction/supertype

Tests Stability Dependencies

{constructor: {prototype: Object}} => string

Return the super type of an value.

class A {}
class B extends A {}

supertype(new B()) // "A"