function fun3(param1,param2){
var a ;
var out = [];
for (i = 0; i < param1.length; i++){
if(param1[i].indexOf(param2)!=-1){
a=parseFloat(param1[i].match(/\((\d)\)/));
b=a+11;
out.push(param1[i].replace((/\((\d)\)/),b));
console.log(param1[i]);
}
}
return out;
}
console.log(fun3(arrLab7,"transform"))
|