Files: 89e85f9009db15cde0d4a19d0f6fd5167a25d808 / for-each.js
225 bytesRaw
1 | var resolve = require('./resolve') |
2 | |
3 | module.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