{"ScriptPreparationCode":"const value = \u0022/root/test/a/b/c/\u0022\r\nconst ending = \u0022/\u0022\r\n\r\nfunction compareEndsWith(val, comparator) {\r\n return val.endsWith(comparator)\r\n}\r\nfunction compareSliceMethod(val, comparator) {\r\n const thingToCompare = val.slice(-comparator.length)\r\n return thingToCompare === comparator\r\n}","TestCases":[{"Name":"endWith","Code":"const value = \u0022/root/test/a/b/c/\u0022\r\nconst ending = \u0022/\u0022\r\ncompareEndsWith(value, ending)","IsDeferred":false},{"Name":"slice","Code":"const value = \u0022/root/test/a/b/c/\u0022\r\nconst ending = \u0022/\u0022\r\ncompareSliceMethod(value, ending)","IsDeferred":false}]}