JSFiddle - React, Tailwind, and code Playground

by jairajdesai

JavaScript

originalArray = ["some value", "another value", "and another"];
var newArray = originalArray.map(function(item){
return item+"-";
});
console.log(newArray);