Export Interface Typescript Array Methods Javascript Foreach Vs Map