tdesign-mobile-vue
Version:
tdesign-mobile-vue
39 lines (33 loc) • 893 B
JavaScript
/**
* tdesign v1.9.3
* (c) 2025 TDesign Group
* @license MIT
*/
;
var _baseGetTag = require('./dep-2f809ed9.js');
var isArray = require('./dep-757b152c.js');
var isObjectLike = require('./dep-5be9198d.js');
/** `Object#toString` result references. */
var stringTag = '[object String]';
/**
* Checks if `value` is classified as a `String` primitive or object.
*
* @static
* @since 0.1.0
* @memberOf _
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a string, else `false`.
* @example
*
* _.isString('abc');
* // => true
*
* _.isString(1);
* // => false
*/
function isString(value) {
return typeof value == 'string' || !isArray.isArray(value) && isObjectLike.isObjectLike(value) && _baseGetTag.baseGetTag(value) == stringTag;
}
exports.isString = isString;
//# sourceMappingURL=dep-c3cb976c.js.map