function initimport { init } from "https://dotland.deno.dev/x/rambda@v9.2.0/rambda.js"; init<T extends unknown[]>(input: T): T extends readonly [...infer U, any] ? U : [...T]It returns all but the last element of list or string input. init(input: string): stringIt returns all but the last element of list or string input. Type ParametersT extends unknown[]Parametersinput: TReturnsT extends readonly [...infer U, any] ? U : [...T]Parametersinput: stringReturnsstring