UNPKG

tuyapi

Version:

An easy-to-use API for devices that use Tuya's cloud services

13 lines (11 loc) 296 B
/** * 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};