git ssb

1+

Matt McKegg / mutant



Tree: 56963dca8e160319d630c173c0f3b003996ae919

Files: 56963dca8e160319d630c173c0f3b003996ae919 / test / test-struct.js

356 bytesRaw
1var Struct = require('../struct')
2
3var struct = Struct({
4 a: 'Hello',
5 b: 'You',
6 c: 123,
7 d: Struct({
8 tinker: 'value'
9 })
10})
11
12console.log(struct())
13var releases = [
14 struct(x => console.log(x))
15]
16
17struct.b.set('Cat')
18
19struct.set({
20 a: 'Hello',
21 b: 'Cat',
22 c: 123,
23 d: {
24 tinker: 456
25 }
26})
27
28while (releases.length) {
29 releases.pop()()
30}
31

Built with git-ssb-web