do-declare

Invoke your function when you declare it. aliases: "invoke"

Usage no npm install needed!

<script type="module">
  import doDeclare from 'https://cdn.skypack.dev/do-declare';
</script>

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.