forEach for Objects and Arrays