Skip to content

Latest commit

 

History

History
8 lines (6 loc) · 172 Bytes

squeeze-out-the-extra-space.md

File metadata and controls

8 lines (6 loc) · 172 Bytes

Squeeze Out The Extra Space

Remove all the excess spaces from a string using the squeeze method:

> "this  is   a string".squeeze(' ')
=> "this is a string"