UNPKG

mutant

Version:

Create observables and map them to DOM elements. Massively inspired by hyperscript and observ-*. No virtual dom, just direct observable bindings. Unnecessary garbage collection is avoided by using mutable objects instead of blasting immutable junk all ove

6 lines (4 loc) 118 B
module.exports = isObservable function isObservable (obj) { return typeof obj === 'function' && obj.length === 1 }