$('#scroller').scroll(function(e) {
if ($(this).is(':animated')) {
console.log('scroll happen by animate');
} else if (e.originalEvent) {
// scroll happen manual scroll
console.log('scroll happen manual scroll');
} else {
// scroll happen by call
console.log('scroll happen by call');
}
});
const result = [];
for ( let i = 0; i < arr1.length; i++ ) {
if (!arr2.includes(prefix + arr1[i])) {
result.push(arr1[i]);
}
}
console.log(result);