Files: 079013977dd1a81caf9ed4717492ef3b9f722db0 / solutions / 03.js
286 bytesRaw
1 | |
2 | module.exports = function (map) { |
3 | return function (read) { |
4 | return function (abort, cb) { |
5 | read(abort, function (end, data) { |
6 | if(end) return cb(end) |
7 | else cb(null, map(data)) |
8 | }) |
9 | } |
10 | } |
11 | } |
12 | |
13 | if(!module.parent) |
14 | require('../helpers/map')(module.exports) |
15 |
Built with git-ssb-web