* 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)
| 839 | * // => false |
| 840 | */ |
| 841 | function isString(value) { |
| 842 | return ( |
| 843 | typeof value === "string" || |
| 844 | (!isArray(value) && |
| 845 | isObjectLike(value) && |
| 846 | objectToString.call(value) === stringTag) |
| 847 | ); |
| 848 | } |
| 849 | |
| 850 | /** |
| 851 | * Converts `value` to an array. |
no test coverage detected