Skip to content

caiogondim/obj-subscribe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

obj-subscribe

Install

npm install --save obj-subscribe

Usage

const objSubscribe = require('obj-subscribe')

function callback(obj) {
  // Callback code
}

const obj = objSubscribe({
  a: 1,
  b: 2
}, callback)

obj.a = 3 // Callback will be executed

caiogondim.com  ·  GitHub @caiogondim  ·  Twitter @caio_gondim