code: function(arg, callback) {
      if (!arg || typeof arg !== 'object') return;
  
      if (arg instanceof Array) {
        arg.forEach(callback);
      } else {
        for (var k in arg) {
          callback(arg[k], k);
        }
      }
    }
docs: 遍历方法
  @param arg
  @param callback