{"ScriptPreparationCode":"var analysisAuthors = [{\u0022studyField\u0022:\u0022novel\u0022,\u0022authorName\u0022:\u0022Apollinaire\u0022},{\u0022studyField\u0022:\u0022novel\u0022,\u0022authorName\u0022:\u0022Apollinaire\u0022},{\u0022studyField\u0022:\u0022novel\u0022,\u0022authorName\u0022:\u0022Apollinaire\u0022},{\u0022studyField\u0022:\u0022novel\u0022,\u0022authorName\u0022:\u0022Apollinaire\u0022},{\u0022studyField\u0022:\u0022novel\u0022,\u0022authorName\u0022:\u0022Apollinaire\u0022},{\u0022studyField\u0022:\u0022novel\u0022,\u0022authorName\u0022:\u0022Apollinaire\u0022},{\u0022studyField\u0022:\u0022novel\u0022,\u0022authorName\u0022:\u0022De Lafayette\u0022},{\u0022studyField\u0022:\u0022novel\u0022,\u0022authorName\u0022:\u0022Beckett\u0022},{\u0022studyField\u0022:\u0022novel\u0022,\u0022authorName\u0022:\u0022Montesquieu\u0022},{\u0022studyField\u0022:\u0022novel\u0022,\u0022authorName\u0022:\u0022Yourcenar\u0022}]","TestCases":[{"Name":"_.uniqBy","Code":"_.uniqBy(analysisAuthors, \u0022authorName\u0022)","IsDeferred":false},{"Name":"Set","Code":"Array.from(new Set(analysisAuthors.map(a =\u003E a.authorName)))\r\n .map(authorName =\u003E {\r\n return analysisAuthors.find(a =\u003E a.authorName === authorName)\r\n })","IsDeferred":false},{"Name":"findIndex","Code":"analysisAuthors.filter((author, index, authorsList) =\u003E authorsList\r\n .findIndex(authorInList =\u003E authorInList.authorName === author.authorName) === index)","IsDeferred":false},{"Name":"reduce","Code":"analysisAuthors.reduce((acc, current) =\u003E {\r\n const x = acc.find(item =\u003E item.authorName === current.authorName);\r\n if (!x) {\r\n return acc.concat([current]);\r\n } else {\r\n return acc;\r\n }\r\n }, [])","IsDeferred":false}]}