git ssb

1+

Matt McKegg / mutant



Tree: b9445832e31d8b9279595a8b40c71be0fc1bc40e

Files: b9445832e31d8b9279595a8b40c71be0fc1bc40e / 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