A string: for example,
var a = "";
[""""];
for
for (let j = 0; j < a.length; j += 5){
let titlj = a;
titlj += titlj[j].split(",")
console.log(titlj[j].split(",")); //[""] [""]
}
:
angualrlists:
lists: Array<any> = [
{
title: [""],
text: "xx"
},
{
title: [""],
text: "xx"
},
{
title: [""],
text: "xx"
}
]
:
textRight() {
console.log(this.lists)
for (let i = 0; i < this.lists.length; iPP) {
var str = this.lists[i].title.join();
for (let j = 0; j < str.length / 4 ; jPP) {
var text = str.slice(j * 4, (j + 1) *4);
// console.log(text);
var arrtext = text.split(",");
// console.log(arrtext);
this.lists[i].title = [];
this.lists[i].title.concat(arrtext);
this.lists[i].title = this.lists[i].title.concat(arrtext)
console.log(this.lists[i].title);
}
console.log(this.lists[i].title);
}
}