Use Array.fill instead of mapping.