UNPKG
bogart-edge
Version:
latest (0.7.14)
0.7.14
0.7.12
0.7.11
0.7.10
0.7.9
0.7.8
0.7.7
0.7.6
0.7.5
0.7.3
0.7.2
0.7.1
0.7.0
Fast JSGI web framework taking inspiration from Sinatra
github.com/nrstott/bogart
nrstott/bogart
bogart-edge
/
lib
/
forEachable.js
13 lines
(10 loc)
•
229 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
var
q =
require
(
'./q'
);
exports
.
join
=
function
(
forEachable
) {
var
body =
''
;
function
appendChunk
(
chunk
) { body += chunk; };
return
q.
when
(forEachable.
forEach
(appendChunk),
function
(
) {
return
body; }); };