vanilla-type-check
Version:
13 lines (12 loc) • 326 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Check if a value is a string
*
* @param value value to check
* @returns `true` if `obj` is a string
*/
function isString(value) {
return typeof value === 'string' || value instanceof String;
}
exports.isString = isString;