That’s a bit of an exaggeration. Israel has not attacked Egypt or Jordan.
It has attacked Lebanon after the north of Israel had been evacuated for many months due to relentless rocket attacks from Lebanon.
The only preemptive attack on a neighbour was Syria, after the fall of the Assad regime.