variable headimport { head } from "https://deno.land/x/fonction@v2.1.0-beta.4/common/head.ts"; Infer the head types. ExamplesExample 1 // String head<''> // '' head<'hello'> // 'hello' Example 2 // Array head<[]> // undefined head<['hello', 'world']> // 'hello' type<T extends readonly unknown[] | string>(val: T) => Head<T>