/trim-left

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

Primary LanguageJavaScriptMIT LicenseMIT

Deprecated in favor of String#trimStart.


trim-left

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

Install

$ npm install trim-left

Usage

import trimLeft from '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