This implementation delivers an easy to use Observable wrapper for any JavaScript object or array.
npm install --save tool-shop-js-observable
const data = Observable({
message: "You are welcome!"
});
data.$on("message", () => {
console.log("Message changed!");
});
data.message = "Thank you!";