TypeScript | String substr() Method
The split() is an inbuilt function in TypeScript which is used to returns the characters in a string beginning at the specified location through the specified number of characters.
Parameter: This method accepts two parameter as mentioned above and described below.:
- start – This parameter is the location at which to start extracting characters.
- length – This parameter is the number of characters to extract.
Return Value: This method returns the new sub-string.
Below examples illustrate the String substr() method in TypeScript.
Geeks rm s - Best Platform G