Skip to main content
Module

x/structurae/string-view.ts>StringView#substring

Data structures for high-performance JavaScript applications.
Latest
method StringView.prototype.substring
import { StringView } from "https://deno.land/x/structurae@4.0.1/string-view.ts";

Returns a string of characters between the start and end character indexes, or to the end of the string.

Parameters

optional
indexStart = [UNSUPPORTED]

the character index of the first character to include

optional
indexEnd = [UNSUPPORTED]

the character index of the first character to exclude

Returns

string

a new string containing the specified part of the given string