git ssb

1+

Matt McKegg / mutant



Tree: 3c046a9b0bc48aba55fcf6d897c91c289a6d42b1

Files: 3c046a9b0bc48aba55fcf6d897c91c289a6d42b1 / for-each.js

225 bytesRaw
1var resolve = require('./resolve')
2
3module.exports = function forEach (sources, fn) {
4 if (sources && !sources.forEach) {
5 sources = resolve(sources)
6 }
7
8 if (sources && sources.forEach) {
9 sources.forEach(fn)
10 }
11}
12

Built with git-ssb-web