The _.isArguments() function is used to check whether the given object is an argument or not. It returns a Boolean value True if the given object is an argument and False otherwise.
Syntax:
html
Output:
Example 2:
html
_.isArguments( object )Parameters: This function accepts one parameter as mentioned above and described below:
- object: This parameter holds the value of object that need to be check whether it is an argument or not.
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src=
"https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.9.1/underscore-min.js">
</script>
</head>
<body>
<script type="text/javascript">
var arg = (function () {
return _.isArguments(arguments);
})('Welcome', 'to', 'GeeksforGeeks');
console.log(arg);
</script>
</body>
</html>
Example 2:
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src=
"https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.9.1/underscore-min.js">
</script>
</head>
<body>
<script type="text/javascript">
console.log(_.isArguments(true));
console.log(_.isArguments(1));
console.log(_.isArguments('GeeksforGeeks'));
console.log(_.isArguments([1, 2, 3]));
</script>
</body>
</html>
Output:

