Home

constant: isBuffer


  {
    "comment": "/**\r\n * Checks if `value` is a buffer.\r\n *\r\n * @since 4.3.0\r\n * @category Lang\r\n * @param {*} value The value to check.\r\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\r\n * @example\r\n *\r\n * isBuffer(new Buffer(2))\r\n * // => true\r\n *\r\n * isBuffer(new Uint8Array(2))\r\n * // => false\r\n */",
    "meta": {
        "range": [
            1021,
            1063
        ],
        "filename": "isBuffer.js",
        "lineno": 33,
        "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\lodash\\lodash-repo",
        "code": {
            "id": "astnode100004381",
            "name": "isBuffer",
            "type": "LogicalExpression",
            "value": ""
        }
    },
    "description": "Checks if `value` is a buffer.",
    "since": "4.3.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 buffer, else `false`."
        }
    ],
    "examples": [
        "isBuffer(new Buffer(2))\r// => true\r\risBuffer(new Uint8Array(2))\r// => false"
    ],
    "name": "isBuffer",
    "longname": "isBuffer",
    "kind": "constant",
    "scope": "global",
    "___id": "T000002R000435",
    "___s": true,
    "filepath": "isBuffer.js"
}