Function singleton

  • Type Parameters

    • T

    Parameters

    • arr: T[]

    Returns arr is [T]