UNPKG

423 BJavaScriptView Raw
1'use strict';
2
3/* Dependencies. */
4var one = require('./one');
5
6/* Expose. */
7module.exports = all;
8
9/* Stringify all children of `parent`. */
10function 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