Open In App

Underscore.js _.functions() Function

Improve
Improve
Like Article
Like
Save
Share
Report

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

Syntax:

_.functions(object);

Parameters:

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

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.

html




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


Output:

Screenshot-2024-01-10-184343

Output in the console


Last Updated : 13 Jan, 2024
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads