{"ScriptPreparationCode":"var bundles = [{\r\n isLoading: false,\r\n isFetching: false,\r\n },\r\n {\r\n isLoading: false,\r\n isFetching: false,\r\n },\r\n {\r\n isLoading: false,\r\n isFetching: false,\r\n },\r\n {\r\n isLoading: true,\r\n isFetching: false,\r\n },\r\n {\r\n isLoading: false,\r\n isFetching: false,\r\n },\r\n {\r\n isLoading: false,\r\n isFetching: true,\r\n },\r\n]","TestCases":[{"Name":"Reduce - obj","Code":"return bundles.reduce((acc, bundle) =\u003E ({\r\n\tisLoading: acc.isLoading || bundle.isLoading,\r\n\tisFetching: acc.isFetching || bundle.isFetching\r\n}), {isLoading: false, isFetching: false})","IsDeferred":false},{"Name":"Reduce - arr","Code":"return bundles.reduce((acc, bundle) =\u003E [acc[0] || bundle[0], acc[1] || bundle[1]], [false, false])","IsDeferred":false},{"Name":"Some","Code":"return {\r\n isLoading: bundles.some(bundle =\u003E bundle.isLoading),\r\n isFetching: bundles.some(bundle =\u003E bundle.isFetching)\r\n}","IsDeferred":false}]}