Given two strings, return the index of the first occurrence of s2 in s1, but only check the second half of s1. If there is no occurrence, return -1.
// input:
const s1 = 'hello world hello', s2 = 'hello'
// output:
12
(Ctrl + ')
Loading...
/* output */
Next(Ctrl + y)