Skip to content

Commit

Permalink
- Easy peasy
Browse files Browse the repository at this point in the history
  • Loading branch information
PG-Momik committed Sep 15, 2024
1 parent a4f535a commit 589a5c3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions _008_firstIndexofFirstOccurance.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @param {string} haystack
* @param {string} needle
* @return {number}
*/
var strStr = function(haystack, needle) {
return haystack.indexOf(needle)
};

0 comments on commit 589a5c3

Please sign in to comment.