bingo-keith
Results
1
comments of
bingo-keith
``` String.prototype.myIndexOf = function (str, fromIndex = 0) { const arr = this.slice(fromIndex).split(str); return arr.length === 1 ? -1 : arr[0].length + fromIndex; }; console.log("asdfghjkl".myIndexOf("fg", 2)); console.log("asdfghjkl".indexOf("fg", 2)); Array.prototype.myIndexOf =...