We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 653a991 commit 26bd823Copy full SHA for 26bd823
CWE20/main.js
@@ -0,0 +1,5 @@
1
+const endsWith = (x, y) => {
2
+ return x.lastIndexOf(y) === x.length - y.length
3
+}
4
+
5
+endsWith('x', 'xx')
0 commit comments