mazey
    Preparing search index...

    Function invokeFn

    • Invoke a value only when it is a function.

      Usage:

      import { invokeFn } from "mazey";

      const ret = invokeFn(() => {
      console.log("invokeFn");
      });

      Parameters

      • fn: MazeyFunction | null | undefined

        Potential function to invoke.

      • ...params: any[]

        Arguments passed to the function.

      Returns any

      The function result, or null when fn is not callable.