Notoriously Punctual Manatee

    is-class
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.9 • Public • Published

    is-class

    Check if function is an ES6 class.

    License NPM version PRs Welcome

    Install

    npm install is-class

    Usage

    const isClass = require('is-class')
     
    class F {}
    function G() {}
     
    console.log(isClass(F)) // true
    console.log(isClass(G)) // false

    Test

    npm test

    License

    MIT

    Install

    npm i is-class

    DownloadsWeekly Downloads

    82,744

    Version

    0.0.9

    License

    MIT

    Unpacked Size

    6.73 kB

    Total Files

    12

    Last publish

    Collaborators

    • miguelmota