git ssb

1+

Matt McKegg / mutant



Tree: 89c147a250091cde1a0a493d7aac2a9e27ac1f3b

Files: 89c147a250091cde1a0a493d7aac2a9e27ac1f3b / lib / add-lookup-methods.js

256 bytesRaw
1module.exports = function (target, lookup, checkUpdated) {
2 target.keys = function () {
3 checkUpdated && checkUpdated()
4 return Object.keys(lookup)
5 }
6
7 target.get = function (key) {
8 checkUpdated && checkUpdated()
9 return lookup[key]
10 }
11}
12

Built with git-ssb-web