Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript function example array arg

var names:string[] = new Array("Mary","Tom","Jack","Jill")  

function disp(arr_names:string[]) {
   for(var i = 0;i<arr_names.length;i++) { 
      console.log(names[i]) 
   }  
}  
disp(names)
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #typescript #function #array #arg
ADD COMMENT
Topic
Name
1+2 =