Skip to main content
variable splitLines
import { splitLines } from "https://deno.land/x/30_seconds_of_typescript@v1.0.1/util.ts";

Splits a multiline string into an array of lines.

Use String.prototype.split() and a regular expression to match line breaks and create an array.

type

(str: string) => unknown