array elements double next to each other code example
Example: array elements double next to each other
let drinks: string[] = ['Gin', 'Whiskey', 'Wine', 'Beer'];
let drinks2: string[] = drinks.map((i) => i + i);
console.log(drinks2);
let drinks: string[] = ['Gin', 'Whiskey', 'Wine', 'Beer'];
let drinks2: string[] = drinks.map((i) => i + i);
console.log(drinks2);