Typescript Iterate Through Array Javascript Documentation Mdn