function lastimport { last } from "https://dotland.deno.dev/x/rambda@9.4.1/files/index.d.ts"; last(str: ""): undefinedlast(str: string): stringlast(list: readonly []): undefinedlast(list: never[]): undefinedlast<T extends unknown[]>(array: T): LastArrayElement<T>last<T extends readonly unknown[]>(array: T): LastArrayElement<T>last(str: string): string | undefinedParametersstr: ""ReturnsundefinedParametersstr: stringReturnsstringParameterslist: readonly []ReturnsundefinedParameterslist: never[]ReturnsundefinedType ParametersT extends unknown[]Parametersarray: TReturnsLastArrayElement<T>Type ParametersT extends readonly unknown[]Parametersarray: TReturnsLastArrayElement<T>Parametersstr: stringReturnsstring | undefined