functionator

1.0.4 • Public • Published

functionator

Uncallable statements made callable

Download

npm i functionator

Initialization

const f = require('functionator')

Usage

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

Just wrap your statement with f(...)

Source code

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

Yep, that's all!

Package Sidebar

Install

npm i functionator

Weekly Downloads

2

Version

1.0.4

License

ISC

Unpacked Size

1.05 kB

Total Files

3

Last publish

Collaborators

  • kenmueller