Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

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);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #array #elements #double
ADD COMMENT
Topic
Name
9+8 =