function extractimport { extract } from "https://deno.land/std@0.144.0/encoding/front_matter.ts"; extract<T = unknown>(str: string): Extract<T>Extracts front matter from a string. Extracts front matter from a string. Type ParametersoptionalT = unknownParametersstr: stringString to extract from. import { extract } from "https://deno.land/std@0.144.0/encoding/front_matter.ts"; import { assertEquals } from "https://deno.land/std@0.144.0/testing/asserts.ts"; const { attrs, body, frontMatter } = extract<{ title: string }>("---\ntitle: Three dashes marks the spot\n---\n"); assertEquals(attrs.title, "Three dashes marks the spot"); assertEquals(body, ""); assertEquals(frontMatter, "---\ntitle: Three dashes marks the spot\n---\n"); ReturnsExtract<T>