TypeScript String slice()
Syntax & Examples
Syntax of String.slice()
The syntax of String.slice() method is:
slice(start?: number, end?: number): string
This slice() method of String returns a section of a string.
The syntax of String.slice() method is:
slice(start?: number, end?: number): string
This slice() method of String returns a section of a string.