JSPM

bind-right

0.6.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q31340F
  • License MIT

Bind function arguments from the right

Package Exports

  • bind-right

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (bind-right) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

bind-right Build Status

JavaScript: bind arguments from the right.

Installation

npm install bind-right

Usage

require('bind-right'); // extends the function prototype

function createArray (/* items */) {
  return [].concat(arguments);
};

var thisArg = null;
var bound = createArray.bindRight(thisArg, 3,4,5);
var array = bound(1,2,3);

// array: [1, 2, 3, 4, 5, 6];

OMG IT EXTENDS FUNCTION???!?!@

Yes, as it should.

License

MIT