git ssb

1+

Matt McKegg / mutant



Tree: 4ae9282d39a3f4b2b43760e4c33d0408c400aa04

Files: 4ae9282d39a3f4b2b43760e4c33d0408c400aa04 / 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