Skip to content

28-find-the-index-of-the-first-occurrence-in-a-string

DevGod
DevGod
Vtuber
/**
* @param {string} haystack
* @param {string} needle
* @return {number}
*/
var strStr = function(haystack, needle) {
return haystack.indexOf(needle);
};