libram
    Preparing search index...

    Function undelay

    • Used to collapse a Delayed<T, S> object into an entity of type "T" as represented by the object.

      Type Parameters

      • T
      • S extends any[] = never[]

      Parameters

      • delayedObject: Delayed<T, S>

        Object of type Delayed<T, S> that represents either a value of type T or a function returning a value of type T.

      • ...args: S

        The arguments to pass to the delay function

      Returns T

      The return value of the function, if delayedObject is a function. Otherwise, this returns the original element.