Function action

  • Creates a copy of the passed function which batches updates made during its execution.

    Type Parameters

    • T extends Function

    Parameters

    • fn: T

      A function to copy.

    Returns typeof fn

    A copy of the passed function with batched updates.