# AngularJS API
* * *
API stands for **A**pplication **P**rogramming **I**nterface.
* * *
## AngularJS Global API
The AngularJS Global API is a collection of JavaScript functions for performing common tasks, such as:
* Comparing objects
* Iterating over objects
* Transforming objects
Global API functions are accessed using the `angular` object.
The following are some common API functions:
| API | Description |
| --- | --- |
| angular.lowercase (<angular1.7οΌ angular.$$lowercase()οΌangular1.7+οΌ | Converts a string to lowercase. |
| angular.uppercase() (<angular1.7οΌ angular.$$uppercase()οΌangular1.7+οΌ | Converts a string to uppercase. |
| angular.isString() | Returns true if the given object is a string. |
| angular.isNumber() | Returns true if the given object is a number. |
**Note:** After AngularJS 1.7, the `angular.lowercase` and `angular.uppercase` methods were removed and replaced with `angular.$$lowercase` and `angular.$$uppercase`.
* * *
### angular.lowercase()
## Example
var app = angular.module('myApp', []); app.controller('myCtrl', function($scope) { $scope.x1 = ""; $scope.x2 = angular.$$lowercase($scope.x1); });
[Try it Β»](#)
### angular.uppercase()
## Example
β var app = angular.module('myApp', []); app.controller('myCtrl', function($scope) { $scope.x1 = ""; $scope.x2 = angular.$$uppercase($scope.x1); }); β
[Try it Β»](#)
### angular.isString()
## Example
var app = angular.module('myApp', []);
app.controller('myCtrl', function($scope) {
$scope.x1 = "";
$scope.x2 = angular.isString($scope.x1);
});
[Try it Β»](#)
### angular.isNumber()
## Example
var app = angular.module('myApp', []);
app.controller('myCtrl', function($scope) {
$scope.x1 = "";
$scope.x2 = angular.isNumber($scope.x1);
});
[Try it Β»](#)