slash
@guoba-ai/utils / string / slash
Function: slash()
function slash(str): string;Defined in: string.ts:74
Convert backslashes to forward slashes.
Parameters
str
string
The input string
Returns
string
The string with all backslashes replaced by forward slashes
Example
slash('foo\\bar\\baz') // 'foo/bar/baz'