JSFiddle - React, Tailwind, and code Playground

JavaScript

function replaceStr (str, newValue) {
	return str.replace(str, newValue)
}

var items = [
	{
  	full: 'Закрытое акционерное общество',
    short: 'ЗАО'
  },
  {
  	full: 'Открытое акционерное общество',
    short: 'ОАО'
  }
]

for (var i=0; i<items.length; i += 1) {
	replaceStr(items[i].full, items[i].short);
}