Repository URL to install this package:
|
Version:
5.0.0-rc.11 ▾
|
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var _baseGetTag = require('./_baseGetTag.js');
var isObjectLike = require('./isObjectLike.js');
var isArray = require('./isArray.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.default(value) && isObjectLike.default(value) && _baseGetTag.default(value) == stringTag);
}
var isString_1 = isString;
exports.__moduleExports = isString_1;
exports.default = isString_1;
//# sourceMappingURL=isString.js.map