Е
Size: a a a
Е
Ш
KP
const arr = [1, 2, 3, 4, 542]
М
KP
const arr = [10, 20, 344, 45, 50];
const shouldStartsWith = ["1", "2", "5"];
for (const num of arr) {
const numStr = num.toString();
if (shouldStartsWith.includes(numStr[0])) {
console.log(num);
}
}
Е
🦜
A
М
NH
Ш
М
М
A
Е
Е
М
М
KP
str[0]
М
str[0]