Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/kenmueller/functionator

Uncallable statements made callable
https://github.com/kenmueller/functionator

Last synced: about 2 months ago
JSON representation

Uncallable statements made callable

Awesome Lists containing this project

README

        

# functionator

**Uncallable statements made callable**

## Download

```bash
npm i functionator
```

## Initialization

```javascript
const f = require('functionator')
```

## Usage

```javascript
document.querySelector('button').addEventListener('click', f(alert('hello')))
```

**Just wrap your statement with `f(...)`**

## Source code

```javascript
module.exports = f => () => f
```

**Yep, that's all!**