let counter = 0;
const number = arr => arr.reduce((p, c, i, a) => {
const f = prefix => {
for (let j = 0; j < a.length; j++)
if (prefix.length < a.length - 1) {
f(prefix + a[j]);
} else {
p.push(+(prefix + a[j]));
}
};
f(c.toString());
return p;
}, []);
var num =number([1, 2, 3]);
document.write(number([1, 2, 3]));
console.info(num.length)
=IF('Лист1'!A1="Яблоко";'Лист1'!A1;"")
=IF(A1="";"";'Лист1'!B1)