var block1 = Array.from(Array(50 + 1).keys()).map(n => n + 100);
var block2 = Array.from(Array(50 + 1).keys()).map(n => n + 300);
var current = 125;
console.log(block1.includes(current));
console.log(block2.includes(current));
current = 349;
console.log(block2.includes(current));
function lalka() {
var stickerArray = Array.from( document.querySelectorAll('.sticker') );
if ( stickerArray.length ) {
var words = ['Wear', 'Unscratched'];
stickerArray.forEach( function (sticker) {
var stickerTitle = sticker.getAttribute('title');
words.map(function(word) {
if(word === stickerTitle) {
}
});
var arr = sticker.title.split('\n').filter(str=>{return str.length > 0})
var n = arr.find(e => -1 != e.split('').indexOf('e'))
console.log(n);
});
}
}
setInterval(lalka, 5000);