do-declare
TypeScript icon, indicating that this package has built-in type declarations

1.1.10 • Public • Published

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.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i do-declare

      Weekly Downloads

      1

      Version

      1.1.10

      License

      MIT

      Unpacked Size

      3.34 kB

      Total Files

      5

      Last publish

      Collaborators

      • natqe3