let a = Array.from(document.querySelectorAll('.menu'));
let a = Array.from(document.querySelectorAll('.menu').innerHTML);
<div class="menu">menu 1</div>
<div class="menu">menu 2</div>
<div class="menu">menu 3</div>
<div class="menu">menu 4</div>
<div class="menu">menu 5</div>
Array.from(document.querySelectorAll('.menu'), node => node.textContent);
//["menu 1","menu 2","menu 3","menu 4","menu 5"]