Skip to content

Instantly share code, notes, and snippets.

View bortunac's full-sized avatar
💭
I may be slow to respond.

bortunac

💭
I may be slow to respond.
View GitHub Profile
@bortunac
bortunac / diff.js
Last active January 3, 2018 07:58
detect and react raw javascript object changes
gettype = function (x) {
return {}.toString.call(x).match(/\s([a-zA-Z]+)/)[1];
};
diff = function () {
this.comp=null; // comparation object
this.hnd=function(){}; // no function
};