substring
Gets a substring of a string.
substring
Gets a substring of a string.
Type: transform
Parameters
- input (unknown): The input string.
- start (number): The starting index of the substring.
- length (number): The length of the substring.
Returns
Type: string
The substring of the input string.
Examples
substring("hello world", 0, 5) // "hello"