Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Files

Latest commit

7f2bb39 · Oct 26, 2018

History

History
31 lines (19 loc) · 594 Bytes

README.md

File metadata and controls

31 lines (19 loc) · 594 Bytes

is-string-blank

The fast way to check if a JS string is blank?

Install

npm install is-string-blank

API

var isStringBlank = require('is-string-blank');

isStringBlank(/* any JS object */);

Why?

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

Author

Alex Johnson | https://github.com/alexcjohnson

License

Copyright (c) 2015 Alex Johnson Released under the MIT license.