langchain.js
    Preparing search index...
    • Immediately-invoked function expression.

      Type Parameters

      • T

      Parameters

      • fn: () => T

        The function to execute

      Returns T

      The result of the function