The array is somewhat like this :
[[Object { button={...}}, 
  Object { input={...}}, 
  Object { checkbox={...}}, 
  Object { textarea={...}}],
 [Object { textarea={...}}]
]
In the curly brackets i have set some properties like color,value,type etc.
What i want is to get the each object of  an array and check through the properties like type of an object and then call a function to perform further things. Just like in PHP we use :
foreach($a as $b){
 // and then do something here ..
}; 
Kindly help me through and i hope everyone can understand what i am trying to say.
// var i is the counter for page numbers   
function pagination(i) {
  alert(i);
  i--;
  //page is array 
  var result = page;
  //console.log(result[i]);
  var $currentElem;
  $(result[i]).each(function() {
    currentElem = $(this);
    console.log(currentElem);
  });
} 
     
    