{"ScriptPreparationCode":"var myArr = [\u0027a\u0027, \u0027b\u0027, \u0027c\u0027, \u0027d\u0027, \u0027e\u0027]","TestCases":[{"Name":"includes","Code":"const canDelete = !!(myArr.includes(\u0027a\u0027) \u0026\u0026 myArr.includes(\u0027b\u0027))\r\nconst canAdd = !!(myArr.includes(\u0027a\u0027) \u0026\u0026 myArr.includes(\u0027b\u0027) \u0026\u0026 myArr.includes(\u0027c\u0027))\r\nconst canUpdate = !!(myArr.includes(\u0027b\u0027) \u0026\u0026 myArr.includes(\u0027e\u0027))","IsDeferred":false},{"Name":"reduce and keys","Code":"const toObj = myArr.reduce((a, v) =\u003E ({ ...a, [v]: v}), {})\r\n\r\nconst canDelete = !!(toObj.a \u0026\u0026 toObj.b)\r\nconst canAdd = !!(toObj.a \u0026\u0026 toObj.b \u0026\u0026 toObj.c)\r\nconst canUpdate = !!(toObj.b \u0026\u0026 toObj.e)","IsDeferred":false}]}