Comment Comment by EnigmaticLion > "test".indexOf("st") == "test".length - "st".lengthI don't think this is a correct implementation of "endsWith"."testtest".indexOf("st") =/= "testtest".length - "st".length parent EnigmaticLion 10 years ago
I don't think this is a correct implementation of "endsWith".
"testtest".indexOf("st") =/= "testtest".length - "st".length