code: function each (obj, func) {
      if (obj.forEach) {
          obj.forEach(func);
      } else {
          var p;
          for (p in obj) {
              if (obj.hasOwnProperty(p)) {
                  func.call(obj, obj[p], p, obj);
              }
          }
      }
  }
docs: iterator utility