line_push/node_modules/function-bind
2022-07-17 13:16:16 +08:00
..
test add file 2022-07-17 13:16:16 +08:00
.editorconfig add file 2022-07-17 13:16:16 +08:00
.eslintrc add file 2022-07-17 13:16:16 +08:00
.jscs.json add file 2022-07-17 13:16:16 +08:00
.npmignore add file 2022-07-17 13:16:16 +08:00
.travis.yml add file 2022-07-17 13:16:16 +08:00
implementation.js add file 2022-07-17 13:16:16 +08:00
index.js add file 2022-07-17 13:16:16 +08:00
LICENSE add file 2022-07-17 13:16:16 +08:00
package.json add file 2022-07-17 13:16:16 +08:00
README.md add file 2022-07-17 13:16:16 +08:00

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