{"ScriptPreparationCode":"var arr = [{\r\n permissions: [{\r\n target_type: \u0027tag\u0027,\r\n operations: [\u0027edit\u0027],\r\n },\r\n {\r\n target_type: \u0027log_entry\u0027,\r\n operations: [\u0027list\u0027, \u0027view\u0027, \u0027list\u0027, \u0027view\u0027, \u0027list\u0027, \u0027view\u0027, \u0027list\u0027, \u0027view\u0027],\r\n },\r\n {\r\n target_type: \u0027log_entry\u0027,\r\n operations: [\u0027list\u0027, \u0027view\u0027, \u0027list\u0027, \u0027view\u0027, \u0027list\u0027, \u0027view\u0027, \u0027list\u0027, \u0027view\u0027],\r\n },\r\n {\r\n target_type: \u0027log_entry\u0027,\r\n operations: [\u0027list\u0027, \u0027view\u0027, \u0027list\u0027, \u0027view\u0027, \u0027list\u0027, \u0027view\u0027, \u0027list\u0027, \u0027view\u0027],\r\n },\r\n {\r\n target_type: \u0027log_entry\u0027,\r\n operations: [\u0027list\u0027, \u0027view\u0027, \u0027list\u0027, \u0027view\u0027, \u0027list\u0027, \u0027view\u0027, \u0027list\u0027, \u0027view\u0027],\r\n },\r\n {\r\n target_type: \u0027log_entry\u0027,\r\n operations: [\u0027list\u0027, \u0027view\u0027, \u0027list\u0027, \u0027view\u0027, \u0027list\u0027, \u0027view\u0027, \u0027list\u0027, \u0027view\u0027],\r\n },\r\n {\r\n target_type: \u0027log_entry\u0027,\r\n operations: [\u0027list\u0027, \u0027view\u0027, \u0027list\u0027, \u0027view\u0027, \u0027list\u0027, \u0027view\u0027, \u0027list\u0027, \u0027view\u0027],\r\n },\r\n {\r\n target_type: \u0027log_entry\u0027,\r\n operations: [\u0027list\u0027, \u0027view\u0027, \u0027list\u0027, \u0027view\u0027, \u0027list\u0027, \u0027view\u0027, \u0027list\u0027, \u0027view\u0027],\r\n },\r\n {\r\n target_type: \u0027log_entry\u0027,\r\n operations: [\u0027list\u0027, \u0027view\u0027, \u0027list\u0027, \u0027view\u0027, \u0027list\u0027, \u0027view\u0027, \u0027list\u0027, \u0027view\u0027],\r\n },\r\n ],\r\n },\r\n {\r\n permissions: [{\r\n target_type: \u0027log_entry\u0027,\r\n operations: [\u0027list\u0027, \u0027view\u0027],\r\n },\r\n {\r\n target_type: \u0027log_entry\u0027,\r\n operations: [\u0027list\u0027, \u0027view\u0027],\r\n },\r\n ],\r\n },\r\n {\r\n permissions: [{\r\n target_type: \u0027log_entry\u0027,\r\n operations: [\u0027list\u0027, \u0027view\u0027],\r\n },\r\n {\r\n target_type: \u0027log_entry\u0027,\r\n operations: [\u0027list\u0027, \u0027view\u0027],\r\n },\r\n ],\r\n },\r\n {\r\n permissions: [{\r\n target_type: \u0027log_entry\u0027,\r\n operations: [\u0027list\u0027, \u0027view\u0027],\r\n },\r\n {\r\n target_type: \u0027log_entry\u0027,\r\n operations: [\u0027list\u0027, \u0027view\u0027],\r\n },\r\n ],\r\n },\r\n]","TestCases":[{"Name":"map\u002Bflat","Code":"arr.map((m) =\u003E m.permissions).flat()","IsDeferred":false},{"Name":"reduce\u002Bpush","Code":"arr.reduce((acc, cur) =\u003E {\r\n acc.push(...cur.permissions);\r\n return acc;\r\n}, [])","IsDeferred":false},{"Name":"reduce\u002Bconcat","Code":"arr.reduce((accu, curr) =\u003E {\r\n return accu.concat([...curr.permissions])\r\n}, [])","IsDeferred":false},{"Name":"map\u002Blodash","Code":"_.flatten(arr.map(m =\u003E m.permissions))","IsDeferred":false}]}