method String.substr
Private
String.substr(
from: number,
length?: number,
): string
Deprecated

A legacy feature for browser compatibility

Gets a substring beginning at the specified location and having the specified length.

Parameters

from: number

The starting position of the desired substring. The index of the first character in the string is zero.

optional
length: number

The number of characters to include in the returned substring.

Return Type

string