1 line
64 B
JavaScript
1 line
64 B
JavaScript
|
export const trimSlash = (str) => str.replace(/^\/+|\/+$/g, '');
|