do-declare

v1.1.10
Invoke your function when you declare it. aliases: "invoke"
do declare do-declare declare-do

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.

npm i do-declare

Metadata

  • MIT
  • Whatever
  • Natan Farkash
  • released 5/31/2021

Downloads

Maintainers