tyczynski / calliffn

The method that call the passed argument if it is a function.

Home Page:https://www.npmjs.com/package/calliffn

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

The method that call the passed argument if it is a function.

https://www.npmjs.com/package/calliffn

License:MIT License


Languages

Language:JavaScript 100.0%