Deprecated in favor of String#trimStart
.
Similar to
String#trim()
but removes only whitespace on the left
$ npm install trim-left
import trimLeft from 'trim-left';
trimLeft(' unicorn ');
//=> 'unicorn '
trim-right
- Similar toString#trim()
but removes only whitespace on the righttrim-off-newlines
- Similar toString#trim()
but removes only newlines