Closed skleinjung closed 1 year ago
None
here is that enw issue
Title: Create function to remove leading slashes from a path Description:
Create a function that takes a string representing a path as input and returns the same path but with any leading slashes removed. The function should not modify the original string. For example, if the input is "/home/user/documents", the function should return "home/user/documents". If the input is "documents", the function should return "documents". The function should handle edge cases such as empty strings and strings consisting only of slashes. The function should be implemented in Typescript and added to the "coco-toolbox" project.
Please let me know if you need any further information.
We need a function to remove the leading slash from a path string if it has one. No unit tests are needed.