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
16 lines (13 loc) • 321 B
JavaScript
import _ from 'lodash';
module.exports = {
keysToSnakeCaseShallow: function (object) {
return _.mapKeys(object, (value, key) => {
return _.snakeCase(key);
});
},
keysToCamelCaseShallow: function (object) {
return _.mapKeys(object, (value, key) => {
return _.camelCase(key);
});
}
};