VOOZH about

URL: https://www.geeksforgeeks.org/angular-js/angularjs-angular-isnumber-function/

⇱ AngularJS angular.isNumber() Function - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

AngularJS angular.isNumber() Function

Last Updated : 8 Aug, 2022

The angular.isNumber() function in AngularJS is used to determine the parameter inside isNumber function is a number or not. It returns true if the reference is a number otherwise returns false. 

Syntax:

angular.isNumber( value );

Parameter value:

  • value: It determines whether the entered value is a number or not.

Return Value: It returns a boolean value if the passed value is a number as true, otherwise returns false.

Example: This example illustrates the angular.isNumber() function in AngularJS, to check whether the entered value is a number or not.

Output:

👁 Image
 

Example: This example uses angular.isNumber() function to determine whether the given input is a number or not. 

Output:

👁 isNumber

Comment

Explore