Nine Project Managers

    @kamataryo/symbol-function

    1.0.1 • Public • Published

    SymbolFunction

    npm version Build Status

    SymbolFunction can be used as a function and bracket suffix safely.

    install

    $ yarn add @kamataryo/symbol-function
    # or
    $ npm insall @kamataryo/symbol-function

    usage

    // it works as a Function'
    const func = new SymbolFunction(() => 'xyz')
    func() // 'xyz'
    })
    
    // it can be used as bracket suffix
    const func1 = new SymbolFunction(() => {})
    const func2 = new SymbolFunction(() => {})
    const obj = {}
    obj[func1] = 123
    obj[func2] = 234
    
    obj[func1] // 123
    obj[func2] // 234

    Install

    npm i @kamataryo/symbol-function

    DownloadsWeekly Downloads

    0

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    117 kB

    Total Files

    10

    Last publish

    Collaborators

    • kamataryo