Utility for binding a fuction to a given context.
npm install @cfpb/function-bindUtility used to create a new function which is bound to a particular context.
```
var bind = require( 'function-bind' );
var assert = require( 'assert' );
var context = { testing: true };
var mockFunction = function(){ return this };
var boundFunction = bind( mockFunction, context );
assert.equal( boundFunction() === context, true );
`npm install @cfpb/function-bind``
We welcome your feedback and contributions.
See the contribution guidelines for more details.
Additionally, you may want to consider
contributing to the Capital Framework,
which is the front-end pattern library used in this project.
1. TERMS
2. LICENSE
3. CFPB Source Code Policy