Checks if `value` is classified as a `String` primitive or object.
isString('abc')
// => true
isString(1)
// => false
Name | Type | Attribute | Description |
---|---|---|---|
value | The value to check. |
{ "comment": "/**\r\n * Checks if `value` is classified as a `String` primitive or object.\r\n *\r\n * @since 0.1.0\r\n * @category Lang\r\n * @param {*} value The value to check.\r\n * @returns {boolean} Returns `true` if `value` is a string, else `false`.\r\n * @example\r\n *\r\n * isString('abc')\r\n * // => true\r\n *\r\n * isString(1)\r\n * // => false\r\n */", "meta": { "range": [ 372, 559 ], "filename": "isString.js", "lineno": 18, "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\lodash\\lodash-repo", "code": { "id": "astnode100005261", "name": "isString", "type": "FunctionDeclaration", "paramnames": [ "value" ] }, "vars": { "type": "isString~type" } }, "description": "Checks if `value` is classified as a `String` primitive or object.", "since": "0.1.0", "tags": [ { "originalTitle": "category", "title": "category", "text": "Lang", "value": "Lang" } ], "params": [ { "type": { "names": [ "*" ] }, "description": "The value to check.", "name": "value" } ], "returns": [ { "type": { "names": [ "boolean" ] }, "description": "Returns `true` if `value` is a string, else `false`." } ], "examples": [ "isString('abc')\r// => true\r\risString(1)\r// => false" ], "name": "isString", "longname": "isString", "kind": "function", "scope": "global", "___id": "T000002R000498", "___s": true, "filepath": "isString.js" }