Guest User

Untitled

a guest
Oct 18th, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. function monkeyPatch () {
  2. Object.defineProperty(Array.prototype, 'abbrev', {
  3. value: function () { return abbrev(this) },
  4. enumerable: false, configurable: true, writable: true
  5. })
  6.  
  7. Object.defineProperty(Object.prototype, 'abbrev', {
  8. value: function () { return abbrev(Object.keys(this)) },
  9. enumerable: false, configurable: true, writable: true
  10. })
  11. }
Add Comment
Please, Sign In to add comment