Array of elements

Hi,
I want to create an Array of elements → $w([‘#e1’, ‘#e2’])

and then use the forEach to apply a function for each one!

any advice or how to achieve that ? i really appreciate your help

thanks,
Jhin