Skip to main content
Module

x/ts_toolbelt_unofficial/mod.ts>String.Split

👷 TypeScript's largest type utility library, now on Deno
Latest
type alias String.Split
import { type String } from "https://deno.land/x/ts_toolbelt_unofficial@1.1.0/mod.ts";
const { Split } = String;

Split S by D into a [[List]]

Type Parameters

S extends string
optional
D extends string = ""
definition: _Split<S, D> extends infer X ? Cast<X, string[]> : never