Dailin 415ba84223 | 3 lat temu | ||
---|---|---|---|
.. | |||
test | 删除 | 3 lat temu | |
.editorconfig | 3 lat temu | ||
.eslintrc | 3 lat temu | ||
.jscs.json | 3 lat temu | ||
.npmignore | 3 lat temu | ||
.travis.yml | 3 lat temu | ||
LICENSE | 3 lat temu | ||
README.md | 3 lat temu | ||
implementation.js | 3 lat temu | ||
index.js | 3 lat temu | ||
package.json | 3 lat temu |
Implementation of function.prototype.bind
I mainly do this for unit tests I run on phantomjs. PhantomJS does not have Function.prototype.bind :(
Function.prototype.bind = require("function-bind")
npm install function-bind