If you have data as an array of names, this will work for you: arr.map((El,index) => `Array[${index}]-${el}`))