1 | ;
|
2 |
|
3 | /* Dependencies. */
|
4 | var one = require('./one');
|
5 |
|
6 | /* Expose. */
|
7 | module.exports = all;
|
8 |
|
9 | /* Stringify all children of `parent`. */
|
10 | function all(ctx, parent) {
|
11 | var children = parent && parent.children;
|
12 | var length = children && children.length;
|
13 | var index = -1;
|
14 | var results = [];
|
15 |
|
16 | while (++index < length) {
|
17 | results[index] = one(ctx, children[index], index, parent);
|
18 | }
|
19 |
|
20 | return results.join('');
|
21 | } |
\ | No newline at end of file |