.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / remark-stringify / lib / macro / all.js
1 'use strict';
2
3 module.exports = all;
4
5 /* Visit all children of `parent`. */
6 function all(parent) {
7   var self = this;
8   var children = parent.children;
9   var length = children.length;
10   var results = [];
11   var index = -1;
12
13   while (++index < length) {
14     results[index] = self.visit(children[index], parent);
15   }
16
17   return results;
18 }