1.0.4 • Published 5 years ago
functionator v1.0.4
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!