New Phone Models

    @ject/callable

    0.0.17 • Public • Published

    @ject/callable

    Make class callable.

    npm version npm download monthly npm download total npm dependents npm license pp install size github commit last github commit total

    Features

    • Make class callable

    Install

    $ npm install @ject/callable

    Usage

    import { Callable } from '@ject/callable'
    // inherit the class Callable
    class CallableClass extends Callable {
      constructor (a, b) {
        super(row => this.a + this.b + row)
        this.a = a
        this.b = b
      }
    }
    
    const callableClass = new CallableClass(5, 4)
    console.log(callableClass(3)) // 12

    Meta

    LICENSE (MIT)

    Install

    npm i @ject/callable

    DownloadsWeekly Downloads

    4

    Version

    0.0.17

    License

    MIT

    Unpacked Size

    4.02 kB

    Total Files

    5

    Last publish

    Collaborators

    • hoyeung