Add a forEach method to the snapshot