I just want to find all layers with the same name in all the selected artboards, the code seems doesn’t work~
What should be the correct way to write the code?
for(let i=0;i<selection().length;i++) {
let layers = await find([selection()[i]], n => true);
layers.forEach(n => {
if(n.name == 'Annotation'){
n.remove();
}else{
return false;
}
});
};