https://wikimass.com/js/array-foreach