import ts = require ( 'typescript' ) ; var arr = [ 1 , 2 , 3 ] ; arr . map ( function ( value ) { console . log ( value ) ; } ) ; function sum ( a , b ) { return a + b ; } var result = arr . reduce ( sum ) ; console . log ( result * 10 ) ; var obj = { a : 10 , b : 20 , c : 30 , } ; Object . keys ( obj ) . forEach ( function ( key ) { console . log ( obj [ key ] ) ; } ) ;