git ssb

3+

cel / ssb-npm-registry



Tree: d2f2697f296dd39aed6a8b63c6d04a736a7db5b3

Files: d2f2697f296dd39aed6a8b63c6d04a736a7db5b3 / node_modules / pull-stream / util / tester.js

265 bytesRaw
1var prop = require('./prop')
2
3function id (e) { return e }
4
5module.exports = function tester (test) {
6 return (
7 'object' === typeof test && 'function' === typeof test.test //regexp
8 ? function (data) { return test.test(data) }
9 : prop (test) || id
10 )
11}
12

Built with git-ssb-web