function headimport { head } from "https://deno.land/x/rambda@9.2.1/mod.ts"; head(str: string): stringIt returns the first element of list or string input. head(str: ""): undefinedhead<T>(list: never[]): undefinedhead<T extends unknown[]>(array: T): FirstArrayElement<T>head<T extends readonly unknown[]>(array: T): FirstArrayElement<T>It returns the first element of list or string input. Parametersstr: stringReturnsstringParametersstr: ""ReturnsundefinedType ParametersTParameterslist: never[]ReturnsundefinedType ParametersT extends unknown[]Parametersarray: TReturnsFirstArrayElement<T>Type ParametersT extends readonly unknown[]Parametersarray: TReturnsFirstArrayElement<T>