jQuery return all Array
How can i get all the contents of the array outside the function?

     $.each(Basepath.Templates, function(i){
         templateArray = new Array({title: Basepath.Templates[i].Template.name, src: 'view/'+Basepath.Templates[i].Template.id, description: Basepath.Templates[i].Template.name});
    });
	
	console.log(templateArray); //contains only one array;
    
any help?TIA
jQuery return all Array
===

How can i get all the contents of the array outside the function?

     $.each(Basepath.Templates, function(i){
         templateArray = new Array({title: Basepath.Templates[i].Template.name, src: 'view/'+Basepath.Templates[i].Template.id, description: Basepath.Templates[i].Template.name});
    });
	
	console.log(templateArray); //contains only one array;
    
any help?TIA