AngularJS APIs are used for comparing, iterating and converting objects.Basic AngularJS API includes
- angular.isString()
- angular.lowercase()
- angular.uppercase()
- angular.isNumber()
1. angular.isString()
It is used to check whether an object is a string or not.It returns true if the object is string otherwise false.
Example:
Output:
👁 Image
2. angular.lowercase()
It is used to convert all the characters of the string into lowercase characters.
Example:
Output:
👁 Image
3. angular.uppercase()
It is used to convert all the characters of the string into uppercase characters.
Example:
Output:
👁 Image
4. angular.isNumber()
It is used to check whether an object is a number or not. It returns true if object is a number otherwise false.
Example:
Output:
👁 Image