is-string-blank
Version:
The fast way to check if a string is blank
32 lines (19 loc) • 625 B
Markdown
The fast way to check if a JS string is blank?
```
npm install is-string-blank
```
```js
var isStringBlank = require('is-string-blank');
isStringBlank(/* any JS object */);
```
In [plotly](https://plot.ly/)'s javascript graphing library
[](https://plot.ly/javascript/) blank strings should be identified to be ignored e.g. by webgl.
`is-string-blank` is significantly simplified and sped up
Alex Johnson | https://github.com/alexcjohnson
Copyright (c) 2015 Alex Johnson Released under the MIT license.