{"ScriptPreparationCode":"var rawStringFetchArgs = [\u0027http://test.com\u0027, { method: \u0027post\u0027, body: JSON.stringify({ property: \u0027value\u0027 }) }]\r\nvar urlObjectFetchArgs = [new URL(\u0027http://test.com\u0027), { method: \u0027post\u0027, body: JSON.stringify({ property: \u0027value\u0027 }) }]\r\nvar requestObjectFetchArgs = [new Request(\u0027http://test.com\u0027, { method: \u0027post\u0027, body: JSON.stringify({ property: \u0027value\u0027 }) })]\r\nvar requestObjectSecondFetchArgs = [\u0027http://test.com\u0027, new Request(\u0027http://test.com\u0027, { method: \u0027post\u0027, body: JSON.stringify({ property: \u0027value\u0027 }) })]\r\n\r\nfunction cloneWithInstanceOf(args) {\r\n return args.map(arg =\u003E arg instanceof Request ? arg.clone() : arg)\r\n}\r\n\r\nfunction cloneWithTypeOf(args) {\r\n return args.map(arg =\u003E !!arg \u0026\u0026 typeof arg === \u0027object\u0027 \u0026\u0026 arg.clone \u0026\u0026 typeof arg.clone === \u0027function\u0027 ? arg.clone() : arg)\r\n}\r\n","TestCases":[{"Name":"[string, object] - instanceof","Code":"cloneWithInstanceOf(rawStringFetchArgs)","IsDeferred":false},{"Name":"[string, object] - typeof","Code":"cloneWithTypeOf(rawStringFetchArgs)","IsDeferred":false},{"Name":"[url, object] - instanceof","Code":"cloneWithInstanceOf(urlObjectFetchArgs)","IsDeferred":false},{"Name":"[url, object] - typeof","Code":"cloneWithTypeOf(urlObjectFetchArgs)","IsDeferred":false},{"Name":"[request] - instanceof","Code":"cloneWithInstanceOf(requestObjectFetchArgs)","IsDeferred":false},{"Name":"[request] - typeof","Code":"cloneWithTypeOf(requestObjectFetchArgs)","IsDeferred":false},{"Name":"[string, request] - instanceof","Code":"cloneWithInstanceOf(requestObjectSecondFetchArgs)","IsDeferred":false},{"Name":"[string, request] - typeof","Code":"cloneWithTypeOf(requestObjectSecondFetchArgs)","IsDeferred":false}]}