function initimport { init } from "https://deno.land/x/rambda@9.2.1/mod.ts"; 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