Underscore.js _.isString() Function Last Updated : 01 Aug, 2023 Comments Improve Suggest changes Like Article Like Report The _.isString() function is used to check whether the given object element is string or not. Syntax: _.isString( object ) Parameters: This function accepts single parameter as mentioned above and described below: object: It contains the value of object that need to be check whether it is an string or not. Return Value: It returns a Boolean value True if given object element is string, False otherwise. Example 1: html <!DOCTYPE html> <html> <head> <script type="text/javascript" src= "https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.9.1/underscore-min.js"> </script> </head> <body> <script type="text/javascript"> var info = { Company: 'GeeksforGeeks', Address: 'Noida', Contact: '+91 9876543210' }; console.log(_.isString(info)); var str = 'GeeksforGeeks'; console.log(_.isString(str)); </script> </body> </html> Output: Example 2: html <!DOCTYPE html> <html> <head> <script type="text/javascript" src= "https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.9.1/underscore-min.js"> </script> </head> <body> <script type="text/javascript"> console.log(_.isString(true)); console.log(_.isString(10)); console.log(_.isString('GeeksforGeeks')); console.log(_.isString("20")); </script> </body> </html> Output: Comment More infoAdvertise with us Next Article Underscore.js _.isString() Function A ashokjaiswal Follow Improve Article Tags : JavaScript Web Technologies JavaScript - Underscore.js Similar Reads Underscore.js _.isSet() Function Underscore.js is a library in javascript that makes operations on arrays, string, objects much easier and handy. _.isSet() function is used to check whether the given object is javascript set or not. When linking the underscore.js CDN The "_" is attached to the browser as global variable. Syntax: _. 2 min read Underscore.js _.isNaN() Function _.isNaN() function:Â It is used to find whether the value of the object passed is NaN or not.If the object's value is NaN then the output will be true otherwise, it will be false.We can even perform addition, subtraction etc operations in this function. Syntax:Â _.isNaN(object) Parameters:It takes o 3 min read Underscore.js _.isFunction() Function The _.isFunction() function is used to check whether the given object is function or not. It returns a Boolean value True if the given object is a function and returns False otherwise. Syntax: _.isFunction( object ) Parameters: This function accepts single parameter as mentioned above and described 1 min read Underscore.js _.isNull() Function Underscore.js _.isNull() function It is used to find whether the value of the object is null. If an object has a null value then the output will be true otherwise false. We can even perform addition, subtraction, etc operations in this function. Syntax:Â _.isNull(object);Parameters:It takes only one 3 min read Underscore.js _.isRegExp() Function _.isRegExp() function: It finds whether the object passed is a regular expression or not. If the object is a regular expression then it returns true otherwise false. We can even apply operations like addition etc on the variables in which the result of _.isRegExp() is stored. Syntax: _.isRegExp(obje 3 min read Like