UNPKG

kibana-123

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

17 lines (15 loc) 404 B
import _ from 'lodash'; import angular from 'angular'; /** * Take text from the model and present it to the user as a string * @param {text} model value * @returns {string} */ export default function toUser(text) { if (text == null) return ''; if (_.isObject(text)) { if (text.query_string) return toUser(text.query_string.query); return angular.toJson(text); } return '' + text; };