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