validatees
Version:
✅ Validation library for ES6+ modules
12 lines (11 loc) • 376 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isString = void 0;
function isString(value) {
return ("string" === typeof value ||
value instanceof String ||
String === value.constructor ||
"[object String]" === Object.prototype.toString.call(value));
}
exports.isString = isString;
exports.default = isString;