1array.map((item) => {
2 return item * 2
3} // an example that will map through a a list of items and return a new array with the item multiplied by 2
1let map = new Map()
2map['bla'] = 'blaa'
3map['bla2'] = 'blaaa2'
4
5console.log(map) // Map { bla: 'blaa', bla2: 'blaaa2' }
6
1['elem', 'another', 'name'].map((value, index, originalArray) => {
2 console.log(.....)
3});