Function last

  • Returns the last element of an array or last character of a string.

    Type Parameters

    • T

    • R = T extends readonly A[]
          ? OptSafe<A>
          : Opt<string>

    Parameters

    Returns R

Generated using TypeDoc