Invoke a value only when it is a function.
Usage:
import { invokeFn } from "mazey";const ret = invokeFn(() => { console.log("invokeFn");}); Copy
import { invokeFn } from "mazey";const ret = invokeFn(() => { console.log("invokeFn");});
Potential function to invoke.
Arguments passed to the function.
The function result, or null when fn is not callable.
null
fn
Invoke a value only when it is a function.
Usage: