eslint - malformed

Error content:

iterators/generators require regenerator-runtime, which is too heavyweight for this guide to allow them. Separately, loops should be avoided in favor of array iterations  no-restricted-syntax

error code

for (let item of params){

str += `${item.seriesName} : ${item.value}%<br>`;

}

 solution:

params.forEach((item:any) => {

str += `${item.seriesName} : ${item.value}%<br>`;

});

Guess you like

Origin blog.csdn.net/weixin_56263402/article/details/121159435