https://github.com/zkochan/bind-ponyfill
Binds a function to a specified context and arguments.
https://github.com/zkochan/bind-ponyfill
Last synced: 3 months ago
JSON representation
Binds a function to a specified context and arguments.
- Host: GitHub
- URL: https://github.com/zkochan/bind-ponyfill
- Owner: zkochan
- License: mit
- Created: 2015-07-28T10:43:20.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-30T10:53:14.000Z (almost 9 years ago)
- Last Synced: 2025-03-17T23:21:16.360Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bind-[ponyfill](https://ponyfill.com)
Binds a function to a specified context and arguments.
[](https://david-dm.org/zkochan/bind-ponyfill)
[](https://travis-ci.org/zkochan/bind-ponyfill)
[](http://badge.fury.io/js/bind-ponyfill)## Installation
```
npm install --save bind-ponyfill
```## Usage
```js
var bind = require('bind-ponyfill');bind(function() {
console.log(this);
}, 'Hello world!');
```## License
MIT