2023-12-28 23:41:32 +08:00
|
|
|
# function-bind <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
|
2023-12-18 13:12:25 +08:00
|
|
|
|
2023-12-28 23:41:32 +08:00
|
|
|
[![github actions][actions-image]][actions-url]
|
|
|
|
<!--[![coverage][codecov-image]][codecov-url]-->
|
|
|
|
[![dependency status][deps-svg]][deps-url]
|
|
|
|
[![dev dependency status][dev-deps-svg]][dev-deps-url]
|
|
|
|
[![License][license-image]][license-url]
|
|
|
|
[![Downloads][downloads-image]][downloads-url]
|
2023-12-18 13:12:25 +08:00
|
|
|
|
2023-12-28 23:41:32 +08:00
|
|
|
[![npm badge][npm-badge-png]][package-url]
|
2023-12-18 13:12:25 +08:00
|
|
|
|
|
|
|
Implementation of function.prototype.bind
|
|
|
|
|
2023-12-28 23:41:32 +08:00
|
|
|
Old versions of phantomjs, Internet Explorer < 9, and node < 0.6 don't support `Function.prototype.bind`.
|
2023-12-18 13:12:25 +08:00
|
|
|
|
2023-12-28 23:41:32 +08:00
|
|
|
## Example
|
2023-12-18 13:12:25 +08:00
|
|
|
|
|
|
|
```js
|
|
|
|
Function.prototype.bind = require("function-bind")
|
|
|
|
```
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
`npm install function-bind`
|
|
|
|
|
|
|
|
## Contributors
|
|
|
|
|
|
|
|
- Raynos
|
|
|
|
|
|
|
|
## MIT Licenced
|
|
|
|
|
2023-12-28 23:41:32 +08:00
|
|
|
[package-url]: https://npmjs.org/package/function-bind
|
|
|
|
[npm-version-svg]: https://versionbadg.es/Raynos/function-bind.svg
|
|
|
|
[deps-svg]: https://david-dm.org/Raynos/function-bind.svg
|
|
|
|
[deps-url]: https://david-dm.org/Raynos/function-bind
|
|
|
|
[dev-deps-svg]: https://david-dm.org/Raynos/function-bind/dev-status.svg
|
|
|
|
[dev-deps-url]: https://david-dm.org/Raynos/function-bind#info=devDependencies
|
|
|
|
[npm-badge-png]: https://nodei.co/npm/function-bind.png?downloads=true&stars=true
|
|
|
|
[license-image]: https://img.shields.io/npm/l/function-bind.svg
|
|
|
|
[license-url]: LICENSE
|
|
|
|
[downloads-image]: https://img.shields.io/npm/dm/function-bind.svg
|
|
|
|
[downloads-url]: https://npm-stat.com/charts.html?package=function-bind
|
|
|
|
[codecov-image]: https://codecov.io/gh/Raynos/function-bind/branch/main/graphs/badge.svg
|
|
|
|
[codecov-url]: https://app.codecov.io/gh/Raynos/function-bind/
|
|
|
|
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/Raynos/function-bind
|
|
|
|
[actions-url]: https://github.com/Raynos/function-bind/actions
|