Below is the code I type to go through an array and stick the data needed into an output array, then ultimately return the output array:
var stocks = [\'AAPL\