@unction/supertype
TypeScript icon, indicating that this package has built-in type declarations

4.14.0 • Public • Published

@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"

Readme

Keywords

Package Sidebar

Install

npm i @unction/supertype

Weekly Downloads

2

Version

4.14.0

License

SEE LICENSE IN LICENSE

Unpacked Size

14.5 kB

Total Files

7

Last publish

Collaborators

  • krainboltgreene