let ul = document.querySelector(".store-links");
let elem = document.createElement("i");
elem.className = "fas fa-angle-double-right";
let array = [];
for (let i = 0; i < ul.children.length; i++) {
let clone = elem.cloneNode(true);
array.push(clone);
}
console.dir(array);
for (let i = 0; i < ul.children.length; i++) {
// if (ul.children[i].nextElementSibling === null) {
// console.log(i);
// } else {
let clone = elem.cloneNode(false);
ul.insertBefore(clone, ul.children[i].nextElementSibling);
// }
}
console.dir(array);
let to = ul.children.length
for (let i = 0; i < to; i++) {
// if (ul.children[i].nextElementSibling === null) {
// console.log(i);
// } else {
let clone = elem.cloneNode(false);
ul.insertBefore(clone, ul.children[i].nextElementSibling);
// }
}
let t = [1,2,3];
for (let i=0; i<t.length; i++) {
t.push(i);
if (i>10) break;
}
console.log(t);
// [1, 2, 3, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
for (let i = 0; i < ul.children.length; i++) {
ul.insertBefore( ... );
}