AngularJS | angular.isObject() Function
The angular.isobject() Function in AngularJS is used to determine if the parameter inside isobject function is a object or not. It returns true if the reference is a object else false.
Syntax:
angular.isobject(value)
Return Value: It returns true if the value passed is a object else false.
Example:
<!DOCTYPE html> <html> <head> <script src= "//ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js"> </script> <title> angular.isObject() </title> </head> <body ng-app="app" style="text-align:center"> <h1 style="color:green"> GeeksforGeeks </h1> <h2> angular.isObject() </h2> <body ng-app="app"> <div ng-controller="geek"> <b>Input1: </b> <span> <code> obj1 = {"Name": "Binary search"} </code> </span> <br> <b>isObject: </b>{{isObject1}} <br /> <br> <br> <b>Input2: </b> <code> "geeksforgeeks" </code> <br> <b>isObject:</b> {{isObject2}} </div> <script> var app = angular.module("app", []); app.controller('geek', ['$scope', function($scope) { var obj1 = { "Name": "Binary search" }; var obj2 = "geeksforgeeks"; $scope.isObject1 = angular.isObject(obj1); $scope.isObject2 = angular.isObject(obj2); }]); </script> </body> </html> |
chevron_right
filter_none
Output:

Recommended Posts:
- AngularJS | angular.toJson() Function
- AngularJS | angular.equals() Function
- AngularJS | angular.isUndefined() Function
- AngularJS | angular.isArray() Function
- AngularJS | angular.isString() Function
- AngularJS | angular.bind() Function
- AngularJS | angular.isDefined() Function
- AngularJS | angular.isNumber() Function
- AngularJS | angular.element() Function
- AngularJS | angular.isDate() Function
- AngularJS | angular.isElement() Function
- AngularJS | angular.lowercase() Function
- AngularJS | angular.forEach() Function
- AngularJS | angular.isFunction() Function
- AngularJS | angular.uppercase() Function
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.



