Open In App

Underscore.js _.functions() Function

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

Syntax:

_.functions(object);

Parameters:

Return Value:

It returns the sorted list of all methods that are present in an object.



Example: This example shows the use of the underscore.js _.functions() Function.




<!DOCTYPE html>
<html>
 
<head>
    <script type="text/javascript" src=
    </script>
</head>
 
<body>
    <script type="text/javascript">
        console.log(_.functions(_));
    </script>
</body>
 
</html>

Output:



Output in the console

Article Tags :