It's just a simple example
npm install @anopszetex/string-util
$ npm i @anopszetex/string-util
`$3
`js
import StringUtil from '@anopszetex/string-util';{
const result = StringUtil.isEmpty('') //=> true
}
{
const result = StringUtil.isEmpty(1) //=> true
}
{
const result = StringUtil.isEmpty(' ') //=> true
}
{
const result = StringUtil.isEmpty('not_empty') //=> false
}
{
const result = StringUtil.removeEmptySpaces(' H e l l o W o r l d ') //=> 'HelloWorld'
}
`API
$3
Returns true if is empty, otherwise false
$3
Remove space at begin string and end the string
For more examples, check out the path:
string-util/index.test.js`