Skip to content
This repository has been archived by the owner on Jul 10, 2021. It is now read-only.

Latest commit

 

History

History
28 lines (17 loc) · 641 Bytes

readme.md

File metadata and controls

28 lines (17 loc) · 641 Bytes

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