Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 663 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 663 Bytes

@stevensd2m/spaces-remover

npm (scoped) npm bundle size (minified)

Removes all spaces from a string.

##Install

$ npm install @stevensd2m/spaces-remover

##Usage

const spacesRemover = require("@stevensd2m/spaces-remover")

spacesRemover("So much space!");
//=> "Somuchspace!"

spacesRemover(1337);
//=> Uncaught TypeError: A string was expected!
//    at spacesRemover (<anonymous>:2:41)
//    at <anonymous>:1:1