git ssb

1+

Matt McKegg / mutant



Tree: 6b2214914b0a2bdf4c9c1a0d139a2de5ebde31b2

Files: 6b2214914b0a2bdf4c9c1a0d139a2de5ebde31b2 / test / test-dict.js

380 bytesRaw
1var Dict = require('../dict')
2var Value = require('../value')
3
4var value = Value('blah')
5var dict = Dict({cat: 'meow'})
6dict(x => console.log(x))
7dict.put('dog', 'woof')
8dict.put('sheep', 'baa')
9dict.put('cow', 'moo')
10dict.put('human', value)
11dict.delete('sheep')
12console.log('keys =>', dict.keys())
13dict.set({ cat: 'meow', dog: 'woof', sheep: 'baa', human: value })
14dict.clear()
15

Built with git-ssb-web