LoDash Playground

by ti2005

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.9.0/lodash.min.js"></script>

JavaScript

var brands_details = [{
	"_id" : "5ab10b58671c781150afa85e",
	"detailed_feedback_items" : [
		{
			"component_id" : "5866a145c829f4fa4c36cd9b",
			"text" : "How was your experience for the call made at the Call Center?",
			"question" : "How was your experience for the call made at the Call Center?",
			"field_id" : "primary_rating",
			"component_type" : "ltms-emoticon-rater",
			"is_primary_rating" : true,
			"is_mandatory" : true,
			"is_displayed_on_dashboard" : true,
			"conversation_type" : "question",
			"type" : "rating",
			"label" : "label_1521798498937VmHHn",
			"possible_values" : [
				1,
				2,
				3,
				4,
				5
			],
			"hide_label" : false,
			"do_not_repeat" : false,
			"read-only" : false,
			"interaction_type" : "rating",
			"rating_bar_reactor_allowed" : false,
			"old_component_id" : "5866a145c829f4fa4c36cd9b",
			"prop" : {
				"1" : {
					"value" : 1,
					"label" : "Very Poor",
					"active_color" : "#c42031"
				},
				"2" : {
					"value" : 2,
					"label" : "Poor",
					"active_color" : "#f05f22"
				},
				"3" : {
					"value" : 3,
					"label" : "Neutral",
					"active_color" : "#fab416"
				},
				"4" : {
					"value" : 4,
					"label" : "Very Good",
					"active_color" : "#66b846"
				},
				"5" : {
					"value" : 5,
					"label" : "Excellent",
					"active_color" : "#0b7139"
				}
			},
			"old_field_id" : "primary_rating",
			"seq_no" : 1
		},
		{
			"component_id" : "5836e59bb3faf4d2b4133e5a",
			"text" : "Please rate your experience on the following:",
			"question" : "Please rate your experience on the following:",
			"field_id" : "question_1521798580887",
			"component_type" : "litmus-text-label",
			"is_primary_rating" : false,
			"is_mandatory" : false,
			"is_displayed_on_dashboard" : true,
			"conversation_type" : "label",
			"type" : "label",
			"label" : "label_1521798580887lw4ZB",
			"possible_values" : [ ],
			"hide_label" : false,
			"do_not_repeat" : false,
			"read-only" : true,
			"interaction_type" :...