Sunday, December 29, 2024
Google search engine
HomeLanguagesJavascriptUnderscore.js _.isArguments() Function

Underscore.js _.isArguments() Function

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:

_.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.

Return Value: It returns True if the given object is an arguments and False otherwise.

Example 1:




<!DOCTYPE html>
<html>
  
<head>
    <script type="text/javascript" src=
    </script>
</head>
  
<body>
    <script type="text/javascript">
  
        var arg = (function () {
            return _.isArguments(arguments);
        })('Welcome', 'to', 'neveropen');
  
        console.log(arg);
    </script>
</body>
  
</html>


Output:

Example 2:




<!DOCTYPE html>
<html>
  
<head>
    <script type="text/javascript" src=
    </script>
</head>
  
<body>
    <script type="text/javascript">
  
        console.log(_.isArguments(true));
        console.log(_.isArguments(1));
        console.log(_.isArguments('neveropen'));
        console.log(_.isArguments([1, 2, 3]));
    </script>
</body>
  
</html>


Output:

Whether you’re preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, neveropen Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we’ve already empowered, and we’re here to do the same for you. Don’t miss out – check it out now!

RELATED ARTICLES

Most Popular

Recent Comments