Format:
Recent snippets for: howard dierking
function GetNthPosition(str, c, occurrence) { var lastoccurrence = 0; for (var i = 0; i < occurrence; i++) { var t = str.indexOf(c, lastoccurrence + 1); if(t == lastoccurrence) return lastoccurrence; lastoccurrence = t; } return lastoccurrence; }
110 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
