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