DEV Community

Discussion on: Understanding JavaScript Iteration with C#

goaty92 profile image

Sure, and if you use Typescript, with spray syntax the compiler can know about the type of the array and provide typing information.

If you're concerned with performance then manually iterating through the array is always the best option.