git ssb

1+

Matt McKegg / mutant



Tree: 74b2772da6668585f5a6c10d0e02e7d463880464

Files: 74b2772da6668585f5a6c10d0e02e7d463880464 / 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