1.1.6 • Published 4 years ago
calliffn
The method that call the passed argument if it is a function
Usage
calliffn(function, ...args)
Example
import calliffn from 'calliffn';
const hello = (...args) => args.join(' ');
calliffn(hello, 'Hello', 'World!'); // => 'Hello World!'
calliffn(null) // => undefined
License
MIT | Przemysław Tyczyński