shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
ltrim
Type:Function
Status:stable
Since:1.0.0
Platform:jsnode
@blackbyte.sugar.shared.string
Trim left a specified string
Params
- string*-String
The string to trim
- needle*-String
The string to find an cut out if found
- trimResulttrueBoolean
If you want to trim the resulted ltrim
Return
- -String
The trimed string
Example
import { ltrim } from '@blackbyte/sugar/string'
ltrim('Hello World', 'Hello') // WorldTodo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space