UNPKG

@spalger/kibana

Version:

Kibana is an open source (Apache Licensed), browser based analytics and search dashboard for Elasticsearch. Kibana is a snap to setup and start using. Kibana strives to be easy to get started with, while also being flexible and powerful, just like Elastic

13 lines (12 loc) 303 B
define(function (require) { var _ = require('lodash'); return function collectKeys(children) { var nextChildren = _.pluck(children, 'children'); var keys = _.pluck(children, 'name'); return _(nextChildren) .map(collectKeys) .flattenDeep() .union(keys) .value(); }; });