Typescript Reduce Sum Array Javascript Length Validation Ale Santa Barbara