// can be achieved with the following:
// values(obj).forEach(callback)

function foreach (obj, cb) {
  Object.keys(obj).forEach(function (key) {
    cb(obj[key], key)
  })
}

module.exports = foreach

@@ -93,64 +93,89 @@
 bj, 
-cb
+fn
 ) %7B%0A  
-Object.keys(obj).forEach(function 
+var key%0A%0A  for (key in obj) %7B%0A    if (obj.hasOwnProperty
 (key)
+)
  %7B%0A    
-cb
+  fn
 (obj
@@ -188,14 +188,24 @@
  key
-)%0A  %7D)
+, obj)%0A    %7D%0A  %7D
 %0A%7D%0A%0A

update object/foreach.js