* 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 *
(value)
| 18573 | * // => false |
| 18574 | */ |
| 18575 | function isString(value) { |
| 18576 | return typeof value == 'string' || |
| 18577 | (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag); |
| 18578 | } |
| 18579 | |
| 18580 | module.exports = isString; |
| 18581 |
nothing calls this directly
no test coverage detected
searching dependent graphs…