@aracna/core - v1.5.0
    Preparing search index...

    Function tc

    • The tc function stands for try catch. It takes a function and returns the result of the function or the error that was thrown.

      Aracna Reference

      Type Parameters

      • T
      • U extends Error = Error

      Parameters

      • fn: () => T
      • log: boolean = Configuration.functions.tc.log

      Returns T | U