isuke
12/19/2018 - 12:30 PM

forIn

Object.defineProperty(Object.prototype, "forIn", {
  value: function(fn, self) {
    self = self || this;
    return Object.keys(this).forEach(function(key, index) {
      var value;
      value = this[key];
      return fn.call(self, value, key, index);
    }, this);
  }
});