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

10 lines (9 loc) 233 B
module.exports = function isSame (a, b, compare) { if (compare && compare(a, b)) { return true } else if (typeof a !== typeof b || (typeof a === 'object' && a !== null)) { return false } else { return a === b } }