starry.bound

4.0.0 • Public • Published

Member of the starry suite—modular functions for iterable objects.

npm node

Status

Applies to the whole suite.

Build Status Coverage Status

Usage

function bound<TObject = any, TArgs = any, TOut = any>(
  fn: (object: TObject, ...args: TArgs[]) => TOut
  ): (this: TObject, ...args: TArgs[]) => TOut

Returns a function that calls the input function with the first argument being the output function's context.

Parameters:

  • fn: (object: TObject, ...args: TArgs[]) => TOut

Returns: (this: TObject, ...args: TArgs[]) => TOut

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i starry.bound

    Weekly Downloads

    1

    Version

    4.0.0

    License

    MIT

    Unpacked Size

    2.81 kB

    Total Files

    7

    Last publish

    Collaborators

    • seangenabe