Function once

  • Function wrapper to ensure a function/callback is only called once.

    Type Parameters

    • T extends Function

    Parameters

    • func: T

    Returns T