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

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

License

Notifications You must be signed in to change notification settings

tyczynski/calliffn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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