Monday, September 23, 2024
Google search engine
HomeLanguagesJavascriptUnderscore.js _.functions() Function

Underscore.js _.functions() Function

The _.functions() function is used to return the sorted list of all methods that present in an object.

Syntax:

_.functions(object)

Parameters: This function accepts single parameter as mentioned above and described below:

  • object: It contains the object element that holds the elements [key, value] pair.

Return Value: It returns the sorted list of all methods that present in an object.

Example:




<!DOCTYPE html>
<html>
  
<head>
    <script type="text/javascript" src=
    </script>
</head>
  
<body>
    <script type="text/javascript">
  
        console.log(_.functions(_));
    </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