I have two arrays, e.g. : Note: Element 'total' is static and exist in arrays in every case.
let array1 = ['duck', 'bird', 'dog', 'total']
let array1 = ['pool', 'total', 'cat', 'run', 'kid', 'bike']
I want to use let isValid = array1.some(element => array2.includes(element))
method, but in its pure form it returns true
when find first equal elements. I want to skip the static element, wich in this case is 'total'.