TypeScript String substring()
Syntax & Examples
Syntax of String.substring()
The syntax of String.substring() method is:
substring(start: number, end?: number): string
This substring() method of String returns the substring at the specified location within a String object.