VOOZH about

URL: https://www.geeksforgeeks.org/javascript/underscore-js-_-isnumber-function/

⇱ Underscore.js _.isNumber() Function - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Underscore.js _.isNumber() Function

Last Updated : 12 Jul, 2025

Underscore.js_.isNumber() function is used to check whether the given object parameter is a number or not. If the given object is a number then it returns True value otherwise, it returns False.

Syntax:

_.isNumber( object );

Parameters:

  • object: This parameter holds the object element that needs to be checked whether it is a number or not.

Return Value:

It returns True if the given object is a number, and False otherwise.

Example 1: This example shows the use of the Underscore.js _.isNumber() Function.

Output:

👁 Image

Example 2: This example shows the use of the Underscore.js _.isNumber() Function.

Output:

👁 Image
Comment