git ssb

1+

Matt McKegg / mutant



Tree: 12f0318530920719cc13c2b7b7acc4484c6f4389

Files: 12f0318530920719cc13c2b7b7acc4484c6f4389 / 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