You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.5 KiB

2 years ago
  1. # function-bind
  2. <!--
  3. [![build status][travis-svg]][travis-url]
  4. [![NPM version][npm-badge-svg]][npm-url]
  5. [![Coverage Status][5]][6]
  6. [![gemnasium Dependency Status][7]][8]
  7. [![Dependency status][deps-svg]][deps-url]
  8. [![Dev Dependency status][dev-deps-svg]][dev-deps-url]
  9. -->
  10. <!-- [![browser support][11]][12] -->
  11. Implementation of function.prototype.bind
  12. ## Example
  13. I mainly do this for unit tests I run on phantomjs.
  14. PhantomJS does not have Function.prototype.bind :(
  15. ```js
  16. Function.prototype.bind = require("function-bind")
  17. ```
  18. ## Installation
  19. `npm install function-bind`
  20. ## Contributors
  21. - Raynos
  22. ## MIT Licenced
  23. [travis-svg]: https://travis-ci.org/Raynos/function-bind.svg
  24. [travis-url]: https://travis-ci.org/Raynos/function-bind
  25. [npm-badge-svg]: https://badge.fury.io/js/function-bind.svg
  26. [npm-url]: https://npmjs.org/package/function-bind
  27. [5]: https://coveralls.io/repos/Raynos/function-bind/badge.png
  28. [6]: https://coveralls.io/r/Raynos/function-bind
  29. [7]: https://gemnasium.com/Raynos/function-bind.png
  30. [8]: https://gemnasium.com/Raynos/function-bind
  31. [deps-svg]: https://david-dm.org/Raynos/function-bind.svg
  32. [deps-url]: https://david-dm.org/Raynos/function-bind
  33. [dev-deps-svg]: https://david-dm.org/Raynos/function-bind/dev-status.svg
  34. [dev-deps-url]: https://david-dm.org/Raynos/function-bind#info=devDependencies
  35. [11]: https://ci.testling.com/Raynos/function-bind.png
  36. [12]: https://ci.testling.com/Raynos/function-bind