1.0.0 • Published 10 years ago
bind-at v1.0.0
bind-at
Bind arguments at a certain index.
Example
var bindAt = require('bind-at');
var boundFn = bindAt(fn, 'Bob', 1);
function fn(greeting, name) {
return greeting + ' ' + name + '!';
}
boundFn('Hello');
// Hello Bob!Installation
npm install bind-at
Tests
npm test
NPM scripts
npm run coverThis runs the tests with code coveragenpm run lintThis will run the linter on your codenpm testThis will run the tests.npm run traceThis will run your tests in tracing mode.npm run travisThis is run by travis.CI to run your testsnpm run view-coverThis will show code coverage in a browser
Contributors
- Matt Morgan
MIT Licenced
1.0.0
10 years ago


