<div class="el">1</div>
<div class="el">3</div>
<div class="el">4</div>
<div class="el">5</div>
<div class="el">6</div>
<script>
var div = document.querySelectorAll('div');
var x;
div.forEach(el => el.onmouseenter = e =>{
x = el;
console.log([].filter.call(div, el=> el != x));
} );
</script>