Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zkochan/bind-ponyfill

Binds a function to a specified context and arguments.
https://github.com/zkochan/bind-ponyfill

Last synced: 10 days ago
JSON representation

Binds a function to a specified context and arguments.

Awesome Lists containing this project

README

        

# bind-[ponyfill](https://ponyfill.com)

Binds a function to a specified context and arguments.

[![Dependency Status](https://david-dm.org/zkochan/bind-ponyfill/status.svg?style=flat)](https://david-dm.org/zkochan/bind-ponyfill)
[![Build Status](https://travis-ci.org/zkochan/bind-ponyfill.svg?branch=master)](https://travis-ci.org/zkochan/bind-ponyfill)
[![npm version](https://badge.fury.io/js/bind-ponyfill.svg)](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