10 lines
292 B
Java
10 lines
292 B
Java
function helperCreateTreeFunc (handle) {
|
|
return function (obj, iterate, options, context) {
|
|
var opts = options || {}
|
|
var optChildren = opts.children || 'children'
|
|
return handle(null, obj, iterate, context, [], [], optChildren, opts)
|
|
}
|
|
}
|
|
|
|
module.exports = helperCreateTreeFunc
|