trim-left

Similar to `String#trim()` but removes only whitespace on the left


Keywords
trim, left, string, str, util, utils, utility, whitespace, space, remove, delete
License
MIT
Install
npm install trim-left@2.0.0

Documentation

trim-left

Similar to String#trim() but removes only whitespace on the left

Install

$ npm install --save trim-left

Usage

var trimLeft = require('trim-left');

trimLeft('  unicorn  ');
//=> 'unicorn  '

Related

  • trim-right - Similar to String#trim() but removes only whitespace on the right
  • trim-off-newlines - Similar to String#trim() but removes only newlines

License

MIT © Sindre Sorhus