• Creates a function that will invoke the given producer once and cache the value for future invocations.

    Type Parameters

    Type Parameters

    • T

    Parameters

    • producer: (() => T)

      a function to produce a value

        • (): T
        • Returns T

    Returns (() => T)

      • (): T
      • Returns T

Generated using TypeDoc