@demirdeniz/tuyapi-newgen
Version:
An easy-to-use New Gen API for devices that use Tuya's cloud services (updated with Tuya 3.5 protocol)
13 lines (11 loc) • 308 B
JavaScript
/**
* Checks a given input string.
* @private
* @param {String} input input string
* @returns {Boolean}
* `true` if is string and length != 0, `false` otherwise.
*/
function isValidString(input) {
return typeof input === 'string' && input.length > 0;
}
module.exports = {isValidString};