Files: dacc7137a972984d5f5adfe48e91c35b8056adb9 / lib / key-value.js
298 bytesRaw
1 | var Struct = require('../struct') |
2 | var isObservable = require('../is-observable') |
3 | |
4 | module.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