do-declare
v1.1.10
Published
Invoke your function when you declare it. aliases: "invoke"
Downloads
8
Maintainers
Readme
doDeclare
Invoke your function when you declare it.
aliases: "invoke"
Usage: doDeclare(func: Function, args?: Array): Function
import { doDeclare } from 'do-declare'
const func = doDeclare(()=> console.log(123))
// Output: 123
func()
// Output: 123
This module exported from utilizes project.