npm.io
1.1.10 • Published 5 years ago

do-declare

Licence
MIT
Version
1.1.10
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
6

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.

Keywords