js-partial-is-empty-string
Version:
A partial to check whether a string is empty.
2 lines • 346 B
JavaScript
/*! js-partial-is-empty-string v0.0.1 | MIT License | (c) Richard King - richrdkng@gmail.com */
!function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof module&&module.exports?module.exports=e():t.js_partial_isEmptyString=e()}(this,function(){"use strict";return function(t){return 0===t.length||/^\s+$/.test(t)===!0}});