Home

function: isArguments


isArguments(value: *): boolean

Checks if `value` is likely an `arguments` object.

Example(s):

isArguments(function() { return arguments }())
// => true

isArguments([1, 2, 3])
// => false

Params:

Name Type Attribute Description
value The value to check.

Returns:

boolean

  {
    "comment": "/**\r\n * Checks if `value` is likely an `arguments` 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 an `arguments` object, else `false`.\r\n * @example\r\n *\r\n * isArguments(function() { return arguments }())\r\n * // => true\r\n *\r\n * isArguments([1, 2, 3])\r\n * // => false\r\n */",
    "meta": {
        "range": [
            411,
            536
        ],
        "filename": "isArguments.js",
        "lineno": 18,
        "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\lodash\\lodash-repo",
        "code": {
            "id": "astnode100004166",
            "name": "isArguments",
            "type": "FunctionDeclaration",
            "paramnames": [
                "value"
            ]
        }
    },
    "description": "Checks if `value` is likely an `arguments` 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 an `arguments` object, else `false`."
        }
    ],
    "examples": [
        "isArguments(function() { return arguments }())\r// => true\r\risArguments([1, 2, 3])\r// => false"
    ],
    "name": "isArguments",
    "longname": "isArguments",
    "kind": "function",
    "scope": "global",
    "___id": "T000002R000419",
    "___s": true,
    "filepath": "isArguments.js"
}