simple-loop is an abstraction for iterating over arrays and objects the same way