git ssb

1+

Matt McKegg / mutant



Tree: 32bfa7adad1fe9cf5b68bf33d66a08c36fab8de1

Files: 32bfa7adad1fe9cf5b68bf33d66a08c36fab8de1 / lib / key-value.js

298 bytesRaw
1var Struct = require('../struct')
2var isObservable = require('../is-observable')
3
4module.exports = function MutantKeyValue (key, value) {
5 var result = Struct({key: key, value: value})
6 result._type = 'MutantKeyValue'
7 result.isBound = isObservable(key) || isObservable(value)
8 return result
9}
10

Built with git-ssb-web