validate.io-string-primitive
Version:
Validates if a value is a string primitive.
17 lines (12 loc) • 311 B
JavaScript
/**
* Tests if a value is a string primitive.
*
* @param {*} value - value to test
* @returns {Boolean} boolean indicating if a value is a string primitive
*/
function isString( value ) {
return typeof value === 'string';
} // end FUNCTION isString()
// EXPORTS //
module.exports = isString;
;