Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

Latest commit

 

History

History
22 lines (13 loc) · 479 Bytes

README.md

File metadata and controls

22 lines (13 loc) · 479 Bytes

calliffn npm version

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