Home

function: isFunction


isFunction(value: *): boolean

Checks if `value` is classified as a `Function` object.

Example(s):

isFunction(_)
// => true

isFunction(/abc/)
// => false

Params:

Name Type Attribute Description
value The value to check.

Returns:

boolean

  {
    "comment": "/**\r\n * Checks if `value` is classified as a `Function` 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 function, else `false`.\r\n * @example\r\n *\r\n * isFunction(_)\r\n * // => true\r\n *\r\n * isFunction(/abc/)\r\n * // => false\r\n */",
    "meta": {
        "range": [
            413,
            828
        ],
        "filename": "isFunction.js",
        "lineno": 19,
        "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\lodash\\lodash-repo",
        "code": {
            "id": "astnode100004719",
            "name": "isFunction",
            "type": "FunctionDeclaration",
            "paramnames": [
                "value"
            ]
        },
        "vars": {
            "tag": "isFunction~tag"
        }
    },
    "description": "Checks if `value` is classified as a `Function` 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 function, else `false`."
        }
    ],
    "examples": [
        "isFunction(_)\r// => true\r\risFunction(/abc/)\r// => false"
    ],
    "name": "isFunction",
    "longname": "isFunction",
    "kind": "function",
    "scope": "global",
    "___id": "T000002R000454",
    "___s": true,
    "filepath": "isFunction.js"
}