@comrade.js/removes_spaces

Removes all spaces from a string

Usage no npm install needed!

<script type="module">
  import comradeJsRemovesSpaces from 'https://cdn.skypack.dev/@comrade.js/removes_spaces';
</script>

README

@comrade.js/removes_spaces

npm (scoped) npm bundle size (minified)

Removes all spaces from a string.

Install

$ npm install @comrade.js/removes_spaces

Usage

const tiny = require("@comrade.js/removes_spaces");

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

tiny(1337);
//=> Uncaught TypeError: Tiny wants a string!
//    at tiny (<anonymous>:2:41)
//    at <anonymous>:1:1