{"ScriptPreparationCode":"var data = [{a: 1}, {a: 2}, {a: 3}, {a: 4}, {a: 5}, {a: 6}, {a: 7}, {a: 8}, {a: 1}];","TestCases":[{"Name":"lodash","Code":"_.findIndex(data, 3);","IsDeferred":false},{"Name":"javascript","Code":"const findIndexBy = (arr, value ) =\u003E {\r\n for (let index = 0; index \u003C arr.length; index\u002B\u002B) {\r\n if (arr[index].a === value) {\r\n return index; \r\n }\r\n }\r\n}\r\nfindIndexBy(data, 3)","IsDeferred":false}]}