Version: v0.8.1 - Beta.  We welcome contributors & feedback.

String.removeLeft

removeLeft($prefix) -> string

Description

Remove $prefix from the beginning of the string if it exists.

'#throwbackthursday'.removeLeft('#')
//= 'throwbackthursday'

'throwbackthursday'.removeLeft('#')
//= 'throwbackthursday'

See Also