xiezhiming bcc6bf9d94 修改 hai 1 ano
..
test bcc6bf9d94 修改 hai 1 ano
.editorconfig bcc6bf9d94 修改 hai 1 ano
.eslintrc bcc6bf9d94 修改 hai 1 ano
.jscs.json bcc6bf9d94 修改 hai 1 ano
.npmignore bcc6bf9d94 修改 hai 1 ano
.travis.yml bcc6bf9d94 修改 hai 1 ano
LICENSE bcc6bf9d94 修改 hai 1 ano
README.md bcc6bf9d94 修改 hai 1 ano
implementation.js bcc6bf9d94 修改 hai 1 ano
index.js bcc6bf9d94 修改 hai 1 ano
package.json bcc6bf9d94 修改 hai 1 ano

README.md

function-bind

Implementation of function.prototype.bind

Example

I mainly do this for unit tests I run on phantomjs. PhantomJS does not have Function.prototype.bind :(

Function.prototype.bind = require("function-bind")

Installation

npm install function-bind

Contributors

  • Raynos

MIT Licenced