vlocode-project - v1.40.0-beta-4
    Preparing search index...

    Function lazy

    • Only initialize the variable/value when it is accessed for the first time by wrapping the value in Lazy Proxy that is initialize only once it is acessed.

      Type Parameters

      • T extends object
      • TArgs extends any[]

      Parameters

      • initializer: (...args: TArgs) => T

        Initializer function

      • ...args: TArgs

        Arguments to be passed

      Returns T

      Return value of the lazy initailize