git ssb

1+

Matt McKegg / mutant



Tree: a1abe9b483bc5d56548a660d97c1e2290a176d19

Files: a1abe9b483bc5d56548a660d97c1e2290a176d19 / test / test-varhash.js

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

Built with git-ssb-web