Reduce Method In Javascript Array Of Strings In Arduino