{"ScriptPreparationCode":"var arr1 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];\r\nvar arr2 = [];\r\n\r\nfunction lodashFindLast(arr, n) {\r\n const element = _.findLast(arr);\r\n return element === n;\r\n}\r\n\r\nfunction lengthLast(arr, n) {\r\n const element = arr[arr.lenght - 1];\r\n return element === n;\r\n}\r\n\r\nfunction popLast(arr, n) {\r\n const element = arr.pop();\r\n return element === n;\r\n}\r\n\r\nfunction sliceArray(arr, n) {\r\n const element = arr.slice(-1);\r\n return element === n;\r\n}","TestCases":[{"Name":"lodash","Code":"lodashFindLast(arr1, 8);\r\nlodashFindLast(arr1, 9);\r\nlodashFindLast(arr2, 9);","IsDeferred":false},{"Name":"length-1","Code":"lengthLast(arr1, 8);\r\nlengthLast(arr1, 9);\r\nlengthLast(arr2, 9);","IsDeferred":false},{"Name":"slice","Code":"sliceArray(arr1, 8);\r\nsliceArray(arr1, 9);\r\nsliceArray(arr2, 9);","IsDeferred":false},{"Name":"pop","Code":"popLast(arr1, 8);\r\npopLast(arr1, 9);\r\npopLast(arr2, 9);","IsDeferred":false}]}