1 define(['./hasOwn', './forIn'], function (hasOwn, forIn) {
4 * Similar to Array/forEach but works over object properties and fixes Don't
6 * based on: http://whattheheadsaid.com/2010/10/a-safer-object-keys-compatibility-implementation
8 function forOwn(obj, fn, thisObj){
9 forIn(obj, function(val, key){
10 if (hasOwn(obj, key)) {
11 return fn.call(thisObj, obj[key], key, obj);