Skip to content
Related Articles

Related Articles

AngularJS | angular.isFunction() Function

View Discussion
Improve Article
Save Article
  • Last Updated : 12 Apr, 2019

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



Return Value: It returns true if the value passed is a function else false.


<!DOCTYPE html>
    <script src=
<body ng-app="app"
    <h1 style="color:green">
    <body ng-app="app">
        <div ng-controller="geek">
            <b>Input1: </b>
                  obj = [
                   { name: "Abc"},
                   { name: "Xyz"}
            <b>IsFunction: </b>
            <br />
            <b>Input2: </b>
        var Add = function () {
            return null;
            var app = 
                angular.module("app", []);
                     ['$scope', function($scope) {
                var obj = [{
                    name: "Abc"
                }, {
                    name: "Xyz"
                var Add = function() {
                    return null;
                $scope.isFunction1 = 
                $scope.isFunction2 = 


My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!