npm.io
1.0.0 • Published 7 years ago

jart

Licence
ISC
Version
1.0.0
Deps
0
Size
2 kB
Vulns
0
Weekly
0

Jart

changeChecker(initValue)(nextValue)

Give it an initial value. Returns function that will be true when value changed.

handleChanges(getValue, onChange)()

Useful for redux style environments. Give it a getter func and an onChange callback. It will return a function. Call returned func on every change and it will conditionally calling onChange.

Keywords