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:
- 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:
Output in the console
Last Updated :
13 Jan, 2024
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...