Typescript Get Value From Array Javascript Append To List