Search Docs
substring
Extracts a substring from the str between the start and end indices.
str
start
end
import { substring } from 'funtool/string' substring('hello world', 0, 5); // ✅ 'hello'
function substring(str: string, start: number, end: number): string
string
number