The fast way to check if a JS string is blank?
npm install is-string-blank
var isStringBlank = require('is-string-blank');
isStringBlank(/* any JS object */);
In plotly's javascript graphing library
plotly.js 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.