A10 Networks interview question

3. Please give a function which can find a string occurence time in another string.

Interview Answer

Anonymous

7 Dec 2016

function times(str, substr){ return str.split(substr).length - 1; }