Returns a function that always returns the same value. Also known as const in other languages

  • Type Parameters

    • T

    Parameters

    Returns <U>(y: U) => T