git ssb

1+

Matt McKegg / mutant



Tree: 994654fc520c8585e99de99665ac7140ce87a446

Files: 994654fc520c8585e99de99665ac7140ce87a446 / 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