Files: 17c19a6e1cebd8d78dde3d7e061cb8327f773013 / test / test-set.js
281 bytesRaw
1 | var Set = require('../set') |
2 | var Value = require('../value') |
3 | |
4 | var set = Set() |
5 | var value = Value('ducks') |
6 | set(x => console.log(x)) |
7 | |
8 | set.add('cats') |
9 | set.add('dogs') |
10 | set.add('logs') |
11 | set.add('cats') |
12 | set.add(value) |
13 | |
14 | value.set('cows') |
15 | |
16 | set.delete('dogs') |
17 | set.set(['dogs', 'logs', value]) |
18 |
Built with git-ssb-web