interface Options {
    limit?: number;
    skipEmpty?: boolean;
}

Properties

Properties

limit?: number

Maximum number of splits.

split(Z, "AZBZC", { limit: 1 }) returns ["A", "BZC"]

skipEmpty?: boolean

If true, empty sub sequences are skipped.

false