@abstractsins/test 中文文档教程
@abstractsins/npm-create-test
(https://github.com/abstractsins/npm-create-test)
从字符串中删除所有空格。
Install
$ npm install @abstractsins/test
Usage
const tiny = require("@abstractsins/test");
tiny("So much space!");
//=> "Somuchspace!"
tiny(1337);
//=> Uncaught TypeError: Tiny wants a string!
// at tiny (<anonymous>:2:41)
// at <anonymous>:1:1
@abstractsins/npm-create-test
(https://github.com/abstractsins/npm-create-test)
Removes all spaces from a string.
Install
$ npm install @abstractsins/test
Usage
const tiny = require("@abstractsins/test");
tiny("So much space!");
//=> "Somuchspace!"
tiny(1337);
//=> Uncaught TypeError: Tiny wants a string!
// at tiny (<anonymous>:2:41)
// at <anonymous>:1:1