isLowerCase
Removes leading slashes from a string
Import
import { isLowerCase } from '@fullstacksjs/toolbox';
Signature
function removeLeadingSlashes(str: string): string {}
Examples
removeLeadingSlashes('') // ''
removeLeadingSlashes('/') // ''
removeLeadingSlashes('string') // 'string'
removeLeadingSlashes('/string') // 'string'
removeLeadingSlashes('//string') // 'string'
removeLeadingSlashes('//string/') // 'string/'
removeLeadingSlashes('//string/a') // 'string/a'