Problem is that it becomes unreadable, as `scan` is of type `Record` therefore `Object.entires(scan)` returns an array of tuples, where tuple[0] is the key, tuple[1] is the value and I need both.    so I think the `for .. of` approach is much more readable