1.0.0 • Published 5 years ago
@jswork/next-trim v1.0.0
next-trim
Trim space or customize string.
installation
npm install -S @jswork/next-trim
usage
import '@jswork/next-trim';
//1. trim space:
nx.trim(' abc');
nx.trim(' abc ');
nx.trim('abc ');
// abc
// 2.trim char
nx.trim('/sso-login.html','/');
nx.trim('//sso-login.html','/');
// sso-login.html
license
Code released under the MIT license.
1.0.0
5 years ago