1 | function helperCreateTreeFunc (handle) {
|
2 | return function (obj, iterate, options, context) {
|
3 | var opts = options || {}
|
4 | var optChildren = opts.children || 'children'
|
5 | return handle(null, obj, iterate, context, [], [], optChildren, opts)
|
6 | }
|
7 | }
|
8 |
|
9 | module.exports = helperCreateTreeFunc
|