Skip to content

Instantly share code, notes, and snippets.

View dreamerchandra's full-sized avatar
🤓
Exploring

Chandrakumar dreamerchandra

🤓
Exploring
  • chennai
View GitHub Profile
@dreamerchandra
dreamerchandra / object-watch.js
Last active January 23, 2019 22:15 — forked from eligrey/object-watch.js
object.watch polyfill in ES5
//Original code : https://gist.github.com/eligrey/384583
// modification
//Objects like JSON can be observed using this
if (!Object.prototype.watch) {
Object.defineProperty(
Object.prototype,
"watch", {
enumerable: false,
configurable: true,
writable: false,