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