{"ScriptPreparationCode":"datasets = {\r\n trailer: {},\r\n location: {}\r\n },\r\n uuidv4 = () =\u003E {\r\n return \u0027xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\u0027.replace(/[xy]/g, function(c) {\r\n var r = Math.random() * 16 | 0, v = c == \u0027x\u0027 ? r : (r \u0026 0x3 | 0x8);\r\n return v.toString(16);\r\n });\r\n },\r\n count = 10000\r\n\r\nfor(let step = 0; step \u003C 1000; step\u002B\u002B){\r\n const\r\n location = {\r\n uuid: uuidv4(),\r\n number: Math.random(),\r\n number1: Math.random(),\r\n number2: Math.random(),\r\n number3: Math.random(),\r\n number4: Math.random()\r\n }\r\n\r\n datasets.location[location.uuid] = location\r\n}\r\n\r\nfor(let step = 0; step \u003C count; step\u002B\u002B ){\r\n const\r\n trailer = {\r\n uuid: uuidv4(),\r\n number: Math.random(),\r\n number1: Math.random(),\r\n number2: Math.random(),\r\n number3: Math.random(),\r\n number4: Math.random(),\r\n number5: Math.random(),\r\n number6: Math.random(),\r\n number7: Math.random(),\r\n number8: Math.random(),\r\n number9: Math.random(),\r\n number10: Math.random(),\r\n number11: Math.random(),\r\n number12: Math.random(),\r\n number13: Math.random(),\r\n number14: Math.random(),\r\n number15: Math.random(),\r\n location: step%10 == 0 ? Object.keys(datasets.location)[Math.random()*100|0] : null\r\n }\r\n\r\n datasets.trailer[trailer.uuid] = trailer\r\n}\r\n\r\ntrailers = Object.values(datasets.trailer)","TestCases":[{"Name":"[key]","Code":"trailers.filter(trailer =\u003E datasets.location[trailer.location])","IsDeferred":false},{"Name":"truthy and [key]","Code":"trailers.filter(trailer =\u003E trailer.location \u0026\u0026 datasets.location[trailer.location])","IsDeferred":false},{"Name":"in","Code":"trailers.filter(trailer =\u003E trailer.location in datasets.location)","IsDeferred":false},{"Name":"truthy and in","Code":"trailers.filter(trailer =\u003E trailer.location \u0026\u0026 trailer.location in datasets.location)","IsDeferred":false},{"Name":"not null and in","Code":"trailers.filter(trailer =\u003E trailer.location !== null \u0026\u0026 trailer.location in datasets.location)","IsDeferred":false}]}