git ssb

1+

Matt McKegg / mutant



Tree: 3a2cc56a1da6d73faff468fb282184e3a66fdc49

Files: 3a2cc56a1da6d73faff468fb282184e3a66fdc49 / test / archive / 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